setuptools和pip安装报错
来源:2-4 Python等基础环境安装
了不了之
2022-02-05
toolroot@192:/usr/local/src/setuptools-28.8.0# /opt/python2.7/bin/python ./setup.py install
Traceback (most recent call last):
File “./setup.py”, line 11, in
import setuptools
File “/usr/local/src/setuptools-28.8.0/setuptools/init.py”, line 10, in
from setuptools.extern.six.moves import filter, filterfalse, map
File “/usr/local/src/setuptools-28.8.0/setuptools/extern/init.py”, line 1, in
from pkg_resources.extern import VendorImporter
File “/usr/local/src/setuptools-28.8.0/pkg_resources/init.py”, line 36, in
import email.parser
File “/opt/python2.7/lib/python2.7/email/parser.py”, line 12, in
from email.feedparser import FeedParser
File “/opt/python2.7/lib/python2.7/email/feedparser.py”, line 27, in
from email import message
File “/opt/python2.7/lib/python2.7/email/message.py”, line 16, in
import email.charset
File “/opt/python2.7/lib/python2.7/email/charset.py”, line 13, in
import email.base64mime
File “/opt/python2.7/lib/python2.7/email/base64mime.py”, line 40, in
from email.utils import fix_eols
File “/opt/python2.7/lib/python2.7/email/utils.py”, line 27, in
import random
File “/opt/python2.7/lib/python2.7/random.py”, line 49, in
import hashlib as _hashlib
File “/opt/python2.7/lib/python2.7/hashlib.py”, line 136, in
globals()[__func_name] = __get_hash(__func_name)
File “/opt/python2.7/lib/python2.7/hashlib.py”, line 74, in __get_builtin_constructor
import _sha256
ImportError: No module named _sha256
root@192:/usr/local/src/setuptools-28.8.0# /opt/python2.7/bin/pip install -r ./requirements.txt
-bash: /opt/python2.7/bin/pip: No such file or directory
1回答
-
Jeson
2022-03-01
00
相似问题