私は、モジュール「会話ボット0.4.6」をインストールしようとしたが、それは次のエラーで失敗します。これが起こることを引き起こしている可能性が何会話ボット:インストール
Exception:
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/Library/Python/2.7/site-packages/pip/commands/install.py", line 317, in run
prefix=options.prefix_path,
File "/Library/Python/2.7/site-packages/pip/req/req_set.py", line 742, in install
**kwargs
File "/Library/Python/2.7/site-packages/pip/req/req_install.py", line 831, in install
self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
File "/Library/Python/2.7/site-packages/pip/req/req_install.py", line 1032, in move_wheel_files
isolated=self.isolated,
File "/Library/Python/2.7/site-packages/pip/wheel.py", line 346, in move_wheel_files
clobber(source, lib_dir, True)
File "/Library/Python/2.7/site-packages/pip/wheel.py", line 317, in clobber
ensure_dir(destdir)
File "/Library/Python/2.7/site-packages/pip/utils/__init__.py", line 83, in ensure_dir
os.makedirs(path)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py", line 157, in makedirs
mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/nltk'
?
は、あなたのパッケージをインストールするために使用するコマンドどの明確にしてくださいもらえインストールしてみてください?権限の問題があるようです。あなたのコンピュータの管理者権限はありますか? – Ascurion
私はsudoコマンドでそれを解決しました:sudo pip install chatterbot。もう一つの問題があります。インストールが終わったら、シェルでPythonはモジュールを認識しません。しかし、インストールは正常にインストールされています:chatterbotの収集... chatterbot-0.4.6 future-0.15.2を正常にインストールしました。fuzzywuzzy-0.11.1 jsondatabase-0.1.1 nltk-3.2.1 oauthlib-1.1.2 pymongo-3.3.0 python -twitter-3.1 requests-oauthlib-0.6.2 textblob-0.11.1 – Adryr83
Pythonがモジュールを認識しないということはどういう意味ですか? – Ascurion