想在Python3.x上安裝是不可能的!!!Sentry是一款收集錯誤的工具,可以實時展現給開發人員,而且後臺界面作的十分的好看, 可是你會發如今Python3.x上安裝十分的費勁,最後仍是會以失敗而了結。html
2015年有人在github上提了個issue,問做者在Python3.x上爲何沒法安裝sentry,做者回答不支持。若是你嘗試用pip安裝sentry的話,會出現以下錯誤:python
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting sentry
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/b6/11/6c0b6cb083a0f7bcfe94060aa18c867908d51f2c1cb89e0d6b37ffa21093/sentry-9.1.0.tar.gz
Collecting BeautifulSoup>=3.2.1 (from sentry)
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/1e/ee/295988deca1a5a7accd783d0dfe14524867e31abb05b6c0eeceee49c759d/BeautifulSoup-3.2.1.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-krx08m8x/BeautifulSoup/setup.py", line 22
print "Unit tests have failed!"
^
SyntaxError: Missing parentheses in call to 'print'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-krx08m8x/BeautifulSoup/
複製代碼
在該項目的setup.py
文件中,咱們發現該項目用戶的框架是Django
,而且Programming Language :: Python :: 2 :: Only
,只支持2.x,都9102年了,還在用Python2.x。git
classifiers=[
'Framework :: Django',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 2 :: Only',
'Topic :: Software Development'
],
複製代碼
網上安裝的教程太多了,我就不重複寫了,能夠pip安裝,手動編譯源碼安裝,甚至能夠安裝docker鏡像,十分的方便github
https://www.cnblogs.com/scharfsinnig/p/7467958.html
複製代碼