无法在VS 2017中安装任何Python库:'module'对象没有属性'main'

时间:2018-04-25 13:18:33

标签: python-2.7 pip visual-studio-2017

升级到pip 10.0.1后,我无法在Visual Studio 2017中安装任何新软件包。

----- Installing 'beautifulsoup4==4.6.0' -----
Traceback (most recent call last):
File "<string>", line 1, in <module>
AttributeError: 'module' object has no attribute 'main'
----- Failed to install 'beautifulsoup4==4.6.0' -----

或者

----- Installing 'matplotlib==2.2.2' -----
Traceback (most recent call last):
File "<string>", line 1, in <module>
AttributeError: 'module' object has no attribute 'main'
----- Failed to install 'matplotlib==2.2.2' -----

或者

----- Installing 'requests-auth==1.0.2' -----
Traceback (most recent call last):
File "<string>", line 1, in <module>
AttributeError: 'module' object has no attribute 'main'
----- Failed to install 'requests-auth==1.0.2' -----

0 个答案:

没有答案