我sudo pip install -U nltk按照nltk文档的建议做了.但是,我得到以下输出:
Collecting nltk
Downloading nltk-3.0.5.tar.gz (1.0MB)
100% |????????????????????????????????| 1.0MB 516kB/s
Collecting six>=1.9.0 (from nltk)
Downloading six-1.9.0-py2.py3-none-any.whl
Installing collected packages: six, nltk
Found existing installation: six 1.4.1
DEPRECATION: Uninstalling a distutils installed project (six) has been deprecated and will be removed in a future version. This is due to the fact that uninstalling a distutils project will only partially uninstall the project.
Uninstalling six-1.4.1:
Exception:
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/pip/basecommand.py", line 211, in …Run Code Online (Sandbox Code Playgroud) 得到错误:"ImportError:没有名为rest_auth的模块"
完整跟踪:https://dpaste.de/UHyx
当我尝试使用'python2.7 manage.py runserver'运行服务器时
我的伙伴正在和我一样工作,但是当他运行'python2.7 manage.py runserver'时能够成功运行服务器.我们都有相同的(我们相信)venv安装和包.
不太清楚可以做些什么来修复这个错误,因为我无法从跟踪中得到很多,但我相信我的python版本可能有问题..
我有一个简单的 python 脚本,它从我的下载文件夹中移动文件。当我通过终端运行该脚本时,该脚本运行良好。当它通过 launchd 运行时会出现问题:
Traceback (most recent call last):
File "/Users/ben/Project/Automation/CleanDownload.py", line 11, in <module>
for f in listdir(downloadFolder):
OSError: [Errno 1] Operation not permitted: '/Users/ben/Downloads/'
Run Code Online (Sandbox Code Playgroud)
知道为什么吗?
当我在Mac OS中使用tensorflow时,我遇到了这个错误:
Installing collected packages: html5lib, bleach, markdown, backports.weakref, numpy, funcsigs, pbr, mock, protobuf, tensorflow
Found existing installation: numpy 1.8.0rc1
DEPRECATION: Uninstalling a distutils installed project (numpy) has been deprecated and will be removed in a future version. This is due to the fact that uninstalling a distutils project will only partially uninstall the project.
Uninstalling numpy-1.8.0rc1:
Exception:
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/commands/install.py", line 342, in run
prefix=options.prefix_path, …Run Code Online (Sandbox Code Playgroud)