Mac under Pycharm upgrade pip failure, upgrade through a terminal pip

Use Pycharm so, you need to download a third-party packages, the results suggest the installation fails, you are prompted to upgrade pip version, but by Pycharm reinstall it failed, probably due to the upgrading pip through Pycharm there is no authority, it is generally in Pycharm when the upgrade will fail. As shown, when the right click on the new version of the upgrade, and generally will not succeed this time we have to solve the command line.

 

 Open a terminal, enter the following command in a terminal upgrade pip, Note To use sudo

PIP --upgrade install Python -m sudo PIP 
# # PIP -V check the version number

 You can be executed successfully by the above command. Click here to say, in order to release the corresponding Pycharm on the version and the command line, the same line of python installation path that Pycharm in virtualenv Environment and added to the command, which is the python installation directory site-packages inside the bundle loading to virtualenv Environment.

When performing the upgrade pip above, is used python python path command line installation.

/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages

 The final installation of a variety of packages are in it this catalog, pip after the upgrade is in this directory.

 

If anaconda already installed the latest pip, pip and under the python directory and not up to date, you can upgrade by the above method.

Mounting a respective package jupyter notebook, the installation in the following way.

# This command installs the package, can be used in jupyter notebook in 
! Pip install matplotlib

 

Guess you like

Origin www.cnblogs.com/hanwen1014/p/11478549.html