Home > other >  Small white help, python can't install packages
Small white help, python can't install packages

Time:10-06

Deepin system, had a python2 and installed anaconda (python3.6), terminal type python shows anaconda environment, but can not add packages, PIP command is not used, the distress, enter PIP shows the following
 Traceback (the most recent call last) : 
The File "/home/geng/anaconda3/bin/PIP", line 11, the in & lt; module>
Load_entry_point (' PIP==1.5.4 ', 'console_scripts',' PIP) ()
The File "/home/geng/anaconda3/lib/python3.6/site - packages/pkg_resources/set py", line 489, in load_entry_point
Return get_distribution (dist). Load_entry_point (group, name)
The File "/home/geng/anaconda3/lib/python3.6/site - packages/pkg_resources/set py", line 2852, in load_entry_point
Return ep. The load ()
The File "/home/geng/anaconda3/lib/python3.6/site - packages/pkg_resources/set py", line 2443, in the load
Return the self. The resolve ()
File "/home/geng anaconda3/lib/python3.6/site - packages/pkg_resources/set py", line 2449, resolve in
The module=__import__ (self. Module_name fromlist=[' __name__], level=0)
The File "/home/geng/anaconda3/lib/python3.6/site - packages/PIP - 1.5.4 - py3.6. An egg/PIP/set py", line 9, the in & lt; module>
The from PIP. The log import logger
File "/home/geng anaconda3/lib/python3.6/site - packages/PIP - 1.5.4 - py3.6. An egg/PIP/the py", line 9, the in & lt; module>
The from PIP. _vendor import colorama, pkg_resources
File "/home/geng anaconda3/lib/python3.6/site - packages/PIP - 1.5.4 - py3.6. An egg/PIP/_vendor/pkg_resources py", line 1423, in & lt; module>
Register_loader_type (importlib_bootstrap SourceFileLoader DefaultProvider)
AttributeError: module 'importlib. _bootstrap' has no attribute 'SourceFileLoader'

CodePudding user response:

No great god reply

CodePudding user response:

Add a shell script, change the path, python3 before

Find activate virtual environment, run the source to activate
  • Related