这是在Macos上
我的项目解释器位于:
Pycharm>首选项>项目解释器
Python 3.7 (Evohome) ~ /Evohome/bin/python ##### Evohome is my project name
Package Version etc
certifi
chardet
idna
pip
requests
setuptools
urllib3
如果我运行以下脚本:
import requests
导入请求的结果是此错误。
ModuleNotFoundError: No module named 'requests'
```
So, I can't get past the first bit after which I want to
import JSON
**if I run this code**
```
x = help("modules")
print(x)
exit(0)
```
**The Result from this is**
```
/Users/Jeff/venv/bin/python /Users/Jeff/Documents/Pycharm/EvoHome/Test1.py
Please wait a moment while I gather a list of all available modules...
```
*massive list of available modules*
```
Enter any module name to get more help. Or, type "modules spam" to search
for modules whose name or summary contain the string "spam".
None
Process finished with exit code 0
```
答案 0 :(得分:0)
不知道是哪一个做到了 pyenv安装3.7.6
pyenv全局3.7.6
pyenv版本
echo -e'if命令-v pyenv 1> / dev / null 2>&1;然后\ n eval“ $(pyenv init-)” \ nfi'>>〜/ .zshrc