前提・実現したいこと
Pythonにparamikoをインストールしたいのですが、
エラーが出てしまい、インストールすることができません。
以下のコマンドでインストールしています。
pip3 install scp
今までいろんなpackageをインストールしてましたが、そちらは正常にインストールできました。
ご教授いただければと思います。
----追記----
以下のコマンドでインストールしようとしたら
python3 -m pip install paramiko
Defaulting to user installation because normal site-packages is not writeable Requirement already satisfied: paramiko in ./Library/Python/3.7/lib/python/site-packages (2.7.1) Requirement already satisfied: pynacl>=1.0.1 in ./Library/Python/3.7/lib/python/site-packages (from paramiko) (1.4.0) Requirement already satisfied: cryptography>=2.5 in ./Library/Python/3.7/lib/python/site-packages (from paramiko) (2.9.2) Requirement already satisfied: bcrypt>=3.1.3 in ./Library/Python/3.7/lib/python/site-packages (from paramiko) (3.1.7) Requirement already satisfied: cffi>=1.4.1 in ./Library/Python/3.7/lib/python/site-packages (from pynacl>=1.0.1->paramiko) (1.14.0) Requirement already satisfied: six in /Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/site-packages (from pynacl>=1.0.1->paramiko) (1.12.0) Requirement already satisfied: pycparser in ./Library/Python/3.7/lib/python/site-packages (from cffi>=1.4.1->pynacl>=1.0.1->paramiko) (2.20)
上記のように出ました。
しかし、pythonプログラムを実行するとModuleNotFoundErrorになります。。。。。。
発生している問題・エラーメッセージ
インポート時に出るエラー
MacBook-Pro:~ tetetete$ pip3 install scp WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip. Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue. To avoid this problem you can invoke Python with '-m pip' instead of running pip directly. Defaulting to user installation because normal site-packages is not writeable Requirement already satisfied: scp in ./Library/Python/3.7/lib/python/site-packages (0.13.2) Requirement already satisfied: paramiko in ./Library/Python/3.7/lib/python/site-packages (from scp) (2.7.1) Requirement already satisfied: pynacl>=1.0.1 in ./Library/Python/3.7/lib/python/site-packages (from paramiko->scp) (1.4.0) Requirement already satisfied: cryptography>=2.5 in ./Library/Python/3.7/lib/python/site-packages (from paramiko->scp) (2.9.2) Requirement already satisfied: bcrypt>=3.1.3 in ./Library/Python/3.7/lib/python/site-packages (from paramiko->scp) (3.1.7) Requirement already satisfied: cffi>=1.4.1 in ./Library/Python/3.7/lib/python/site-packages (from pynacl>=1.0.1->paramiko->scp) (1.14.0) Requirement already satisfied: six in /Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/site-packages (from pynacl>=1.0.1->paramiko->scp) (1.12.0) Requirement already satisfied: pycparser in ./Library/Python/3.7/lib/python/site-packages (from cffi>=1.4.1->pynacl>=1.0.1->paramiko->scp) (2.20)
pythonプログラム実行時に出るエラー
/Users/xx/.conda/envs/xx/bin/python /Users/xx/PycharmProjects/xx/xx/xx.py Traceback (most recent call last): File "/Users/xx/PycharmProjects/xx/xx/xx.py", line 1, in <module> import paramiko ModuleNotFoundError: No module named 'paramiko' Process finished with exit code 1
試したこと
以下のコマンドでpip3のバージョンをあげてもダメでした。
$ python3 -m pip install --upgrade pip
補足情報(FW/ツールのバージョンなど)
python3.6
pip 20.1.1
回答1件
あなたの回答
tips
プレビュー