繁体   English   中英

pip 在 python 3.5 中安装 json2html 不起作用

[英]pip install json2html in python 3.5 not working

我安装了 python 3.5 和 2.7,我只使用 python 3.4。

尝试安装 pip install json2html 时,会生成错误:

DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: json2html in /home/ubuntu/.local/lib/python2.7/site-packages (1.3.0)

如何在 python 3 上安装 json2html?

查看目录: $ ls /home/ubuntu/.local/lib/python2.7/site-packages

certifi chardet-3.0.4.dist-info graphyte.pyc json2html pip-20.3.4.dist-info urllib3 certifi-2017.11.5.dist-info graphyte-1.4.dist-info idna json2html-1.3.0.dist-info请求 urllib3-1.22.dist-info chardet graphyte.py idna-2.6.dist-info pip requests-2.18.4.dist-info

$ ls /home/ubuntu/.local/lib/python3.5/site-packages/

certifi certifi-2018.1.18.dist-info chardet chardet-3.0.4.dist-info idna idna-2.6.dist-info requests requests-2.18.4.dist-info urllib3 urllib3-1.22.dist-info

$ pip 冻结

DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
asn1crypto==0.22.0
attrs==15.2.0
beautifulsoup4==4.4.1
carbon==0.9.15
certifi==2017.11.5
chardet==3.0.4
cryptography==1.9
Django==1.8.7
django-tagging==0.4
enum34==1.1.2
graphite-web==0.9.15
graphyte==1.4
html5lib==0.999
idna==2.6
ipaddress==1.0.17
json2html==1.3.0
lxml==3.5.0
meld3==1.0.2
mysqlclient==1.3.7
PAM==0.4.2
pyasn1==0.1.9
pyasn1-modules==0.0.7
PyMySQL==0.9.3
pyOpenSSL==17.3.0
pyparsing==2.0.3
pyserial==3.0.1
pytz==2014.10
requests==2.18.4
service-identity==16.0.0
simplejson==3.8.1
six==1.11.0
sqlparse==0.1.18
supervisor==3.2.0
Twisted==16.0.0
urllib3==1.22
whisper==0.9.15
zope.interface==4.3.2

您是否尝试过通过指定 python 版本来安装它? python3.4 -m pip install SomePackage这个

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM