--Python installation package

1. encountered questions like when uninstall or upgrade package:

It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall. 

 Solve : find "XXX.egg-info" file in the installation path, and then delete it. Before proceeding back later uninstall or upgrade package.

 

 2. encountered similar problems when the install:

ERROR: Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问。
Consider using the `--user` option or check the permissions.

 Solve : Add '--user' to face in the last pip statements, such as:

pip install XXX --user

3. update a single package

pip install --upgrade XXX

4. unload a package

pip uninstall XXX

 

Guess you like

Origin www.cnblogs.com/pandas-blue/p/11869177.html