在安装pip和python时,我遇到了一个说:
目录'/ Users/Parthenon/Library/Logs/pi'或其父目录不归当前用户所有,并且已禁用调试日志.请检查该目录的权限和所有者.如果用sudo执行pip,你可能需要-H标志.
因为我现在必须安装使用sudo.
我已经在我的Mac上安装了python和一些库,我正在运行Yosemite.我最近不得不做一个干净的擦拭,然后重新安装操作系统.现在我收到了这个提示,我无法弄清楚如何改变它
在我的命令行Parthenon$现在之前它是Philips-MBP:~ Parthenon$
我是这台电脑的唯一所有者,这是唯一的帐户.这似乎是一个问题,当升级到python 3.4,似乎没有什么在正确的地方,virtualenv不会去我想象的地方,等等.
我在我的系统上安装了请求模块.
pip install requests
Run Code Online (Sandbox Code Playgroud)
现在我试图在rpel中导入请求
import requests
Run Code Online (Sandbox Code Playgroud)
它失败并出现以下错误
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named requests
Run Code Online (Sandbox Code Playgroud)