想在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
复制代码