In the command line is pip install flask-script, but the leader packet Error

:( problem has been installed flask-script, but the import is unsuccessful)

 

 Corresponding packet is then introduced into the red packet code :()

 

 Later found in the creation of the project is to create your own check of the project in a virtual environment, so there are environmental problems

 

 

 So I should install Flask-script library in a virtual environment:

First, enter the virtual environment in a virtual environment directory

 

 Then install flask-script library

 

 

 

 

carry out.

 

In addition, the method of updating pip in a virtual environment can refer to:

Updated at pip Pycharm in virtual environments

2019.01.13 23:17:02 number of words read 262 2457

After you create a new project using the virtual environment (the default setting) in Pycharm found pip version 10.0.1, you want to update to 18.1 prompt update fails, the solution is as follows.

1, after the establishment of the new project, the virtual environment contains the following libraries:

 

2, the prompts, using the following command to update pip

python -m pip install --upgrade pip

The results suggest that the update failed, but by pip settings can already see the version 18.1

 

3, pip delete files in the folder venv (including two folders 10.0.1 and 18.1)

 

4, again using python -m pip install --upgrade pip update command prompt update was successful. View Installed library, you can see the pip is already Version 18.1

 

5, try to use the updated pip install third-party libraries. It can be used normally.

 

Summary: The cause of the error may be the beginning of an older version pip uninstall fails, resulting in the new pip can not be enabled. In conclusion using the above method can be properly update the pip.

Guess you like

Origin www.cnblogs.com/zhf123/p/11548759.html