想在Python3.x上安装是不可能的!!!Sentry是一款收集错误的工具,能够实时展示给开发人员,并且后台界面做的十分的好看, 但是你会发现在Python3.x上安装十分的费劲,最后还是会以失败而告终。
2015年有人在github上提了个issue,问作者在Python3.x上为什么无法安装sentry,作者回答不支持。如果你尝试用pip安装sentry的话,会出现如下错误:
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。
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'
],
复制代码
如何在Python2.x上安装Sentry
网上安装的教程太多了,我就不重复写了,可以pip安装,手动编译源码安装,甚至可以安装docker镜像,十分的方便
推荐安装方法
https://www.cnblogs.com/scharfsinnig/p/7467958.html
复制代码