问答详情
源自:2-1 python开发环境搭建

pip install BeautifulSoup4安装失败

Traceback (most recent call last):

  File "f:\sofeware\programsofeware\python\python3.5\lib\runpy.py", line 184, in _run_module_as_main

    "__main__", mod_spec)

  File "f:\sofeware\programsofeware\python\python3.5\lib\runpy.py", line 85, in _run_code

    exec(code, run_globals)

  File "F:\Sofeware\ProgramSofeware\python\python3.5\Scripts\pip3.exe\__main__.py", line 5, in <module>

ImportError: cannot import name 'main'


提问者:海家上瘾 2019-08-13 10:14

个回答

  • Sky4480
    2019-09-03 17:17:25

    cd 到 C:\Python36-32\Scripts\ 目录下:  发现有 pip.exe  pip3.exe  pip36.exe ,删除前两个文件,保留想要的pip36.exe


    随后测试,成功。


    C:\Python36-32\Scripts>pip36 -V

    pip 19.1.1 from c:\python36-32\lib\site-packages\pip (python 3.6)