相关疑难解决方法(0)

无法在Mac OS El Capitan上安装nltk

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)

python nltk python-2.7

25
推荐指数
3
解决办法
2万
查看次数

没有名为rest_auth的模块

得到错误:"ImportError:没有名为rest_auth的模块"

完整跟踪:https://dpaste.de/UHyx

当我尝试使用'python2.7 manage.py runserver'运行服务器时

我的伙伴正在和我一样工作,但是当他运行'python2.7 manage.py runserver'时能够成功运行服务器.我们都有相同的(我们相信)venv安装和包.

不太清楚可以做些什么来修复这个错误,因为我无法从跟踪中得到很多,但我相信我的python版本可能有问题..

python django python-2.7 django-rest-framework

9
推荐指数
1
解决办法
6069
查看次数

在 Mac OSX 中运行 python 脚本 launchd 权限问题

我有一个简单的 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)

知道为什么吗?

python macos launchd macos-catalina

8
推荐指数
2
解决办法
4928
查看次数

Mac:OSError:[Errno 1]不允许操作:'/ tmp/pip-XcfgD6

当我在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)

python sip tensorflow

2
推荐指数
2
解决办法
4689
查看次数