1

要求:flask框架

1. 安装pip指令

yum install python-pip -y

2. 安装flask框架

pip install flask==1.9.0

Warning: 
    **You are using pip version 8.1.2, however version 10.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.**

3. 升级pip

pip install --upgrade pip

4. 二次安装flask框架

pip install flask==1.9.0

Error:
Traceback (most recent call last):
    File "/usr/bin/pip", line 7, in <module>
    from pip._internal import main
ImportError: No module named _internal

5. 解决方法

# rm -rf /usr/lib/python2.7/site-packages/pip-10.0.1.dist-info
# yum install python-pip
# pip install --upgrade pip
# pip install flask==1.9.0

vpants
17 声望1 粉丝

一名problem sloving的消防员,一个喜欢不断change self的人,一个追求open thinking的人。


引用和评论

0 条评论