gpt4 book ai didi

python - 如何在pycharm上安装解释器?

转载 作者:行者123 更新时间:2023-11-28 19:03:35 25 4
gpt4 key购买 nike

Python 版本:3.6Pycharm:社区版 2017.3.4当我试图在 pycharm 中安装解释器时 but the "+" button is not available

当我点击底部的“安装打包工具”时it displays an error message

所以我按照一些说明下载了 pip 和 setuptools 并尝试安装它们,但是错误消息不断弹出。 no module named setuptools// no module named pip

我是 python 的新手,不知道发生了什么......请帮忙......


当我尝试在 CMD 上检查 pip 版本时出现错误消息:

C:\WINDOWS\system32>pip --version

Traceback (most recent call last):
File "runpy.py", line 193, in _run_module_as_main
File "runpy.py", line 85, in _run_code
File "C:\Python\Scripts\pip.exe__main__.py", line 5, in ModuleNotFoundError: No module named 'pip'


我已经卸载了 pycharm 并再次重新安装,情况越来越糟。当我点击添加基本解释器时,总是弹出一条错误消息:

"Error: Standard Python 'venv' module not found" What does it mean??

最佳答案

步骤:

1. GoTo 'settings' and 'Project Interpreter'
2. Click on 'Add' and you will get a pop-up.
3. Select 'New environment' and for 'Base interpreter' add the 'python.exe' location from the python3.6 directory of your local drive.
4. click 'Ok'
5. Then you can select the required packages by clicking '+' and searching for package name

关于python - 如何在pycharm上安装解释器?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49838532/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com