我正在重新访问python语言,并且在设置环境时遇到困难。
我在用
-麦克莫哈韦(10.14)
-Python2.7.10(与系统一起打包)
-python 3.7.4(使用自制程序安装)
-自制2.1.14
-第19.2.3点
尝试通过pip安装watchdog时遇到错误消息。我相信这个错误是由于pip试图安装在python 2.7文件夹(没有足够的权限)而不是python 3文件夹中造成的
我试过卸载、重新安装和升级python 3
尝试通过pip安装watchdog时遇到以下错误消息1 error generated.
Error compiling module, falling back to pure Python
running install_lib
creating /Library/Python/2.7/site-packages/yaml
error: could not create '/Library/Python/2.7/site-packages/yaml': Permission denied
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/4d/spq3r5t92654252ql994_l540000gr/T/pip-install-nqmq6O/PyYAML/setup.py'"'"'; __file__='"'"'/private/var/folders/4d/spq3r5t92654252ql994_l540000gr/T/pip-install-nqmq6O/PyYAML/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/4d/spq3r5t92654252ql994_l540000gr/T/pip-record-g8Qjzh/install-record.txt --single-version-externally-managed --compile Check the logs for full command output.