简体   繁体   English

导入pip3会导致“导入错误:没有名为'pip3'的模块

[英]Import pip3 results in "ImportError: No module named 'pip3'

I am on Windows 7 with Python 3.5 installed on it. 我在Windows 7上安装了Python 3.5。 Below is what happens: import pip # works as expected import pip3 # results in below error 以下是发生的情况:import pip#可以按预期的方式工作import pip3#导致以下错误

ImportError: No module named 'pip3'
  • I have pip and pip3.exe both sitting in the same scripts folder. 我的pip和pip3.exe都位于同一脚本文件夹中。
  • I have scripts folder, site packages and python folder all added to my environment variable path (I have added it in user profile, as I do not have admin access to add to system variables) 我已将脚本文件夹,站点程序包和python文件夹全部添加到我的环境变量路径中(我已将其添加到用户配置文件中,因为我没有管理员权限可添加到系统变量中)

Is there any solution which you all have tried and worked. 有没有大家都尝试过和工作过的解决方案。 I am new to python and any help is appreciated. 我是python的新手,不胜感激。

So, I learned that my problem with installing beautifulsoup was because of the firewall restriction in my organization, which I was relating to pip install. 因此,我了解到我安装beautifulsoup的问题是由于组织中的防火墙限制,这与pip安装有关。 I learned of the proxy settings and using that, got to install bs4 via the conda interpreter. 我了解并使用了代理设置,并通过conda解释器安装了bs4。

Thank you for all the answers, which made me think through on various aspects, which I would not have thought of without the probing questions brought up here. 感谢您提供的所有答案,这使我思考了各个方面,没有这里提出的探索性问题,我就不会想到。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 pip3 ImportError:无法导入名称“ IncompleteRead” - pip3 ImportError: cannot import name 'IncompleteRead' 将 requests-html 安装到 pip 和 pip3 后出现“导入错误:没有名为 requests_html 的模块” - "ImportError: No module named requests_html" after installing requests-html to pip and pip3 pip3安装数据日志后导入模块 - import module after pip3 install datalog ModuleNotFoundError:没有名为“pip”的模块 - 执行 pip3 时 - ModuleNotFoundError: No module named 'pip' - while executing pip3 我仍然收到错误ImportError:使用pip3安装请求后,没有模块命名为请求 - I am still getting the error ImportError: No module named requests after installing requests using pip3 pip3因导入错误而崩溃 - pip3 Crashing with Import Error Selenium 通过 pip3 安装,但在使用 import selenium 时找不到名为 selenium 的模块 - Selenium installed via pip3 but when using import selenium no module named selenium found Pip3 和 python 不同步 | ModuleNotFoundError:没有名为“numpy”的模块` - Pip3 and python are not synchronized | ModuleNotFoundError: No module named 'numpy'` 在 Python 3.10.5 中使用 pip3 安装后出现“没有名为‘openpyxl’的模块” - "No module named 'openpyxl'" after installing with pip3 in Python 3.10.5 Python:在pipenv中pip3安装请求之后“没有名为'requests'的模块” - Python: "No module named 'requests' " after pip3 install requests in pipenv
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM