質問編集履歴

2

追記

2020/06/27 08:09

投稿

takahiro00
takahiro00

スコア84

test CHANGED
File without changes
test CHANGED
@@ -20,7 +20,35 @@
20
20
 
21
21
 
22
22
 
23
+ ----追記----
23
24
 
25
+ 以下のコマンドでインストールしようとしたら
26
+
27
+ python3 -m pip install paramiko
28
+
29
+ ```
30
+
31
+ Defaulting to user installation because normal site-packages is not writeable
32
+
33
+ Requirement already satisfied: paramiko in ./Library/Python/3.7/lib/python/site-packages (2.7.1)
34
+
35
+ Requirement already satisfied: pynacl>=1.0.1 in ./Library/Python/3.7/lib/python/site-packages (from paramiko) (1.4.0)
36
+
37
+ Requirement already satisfied: cryptography>=2.5 in ./Library/Python/3.7/lib/python/site-packages (from paramiko) (2.9.2)
38
+
39
+ Requirement already satisfied: bcrypt>=3.1.3 in ./Library/Python/3.7/lib/python/site-packages (from paramiko) (3.1.7)
40
+
41
+ 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)
42
+
43
+ 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)
44
+
45
+ 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)
46
+
47
+ ```
48
+
49
+ 上記のように出ました。
50
+
51
+ しかし、pythonプログラムを実行するとModuleNotFoundErrorになります。。。。。。
24
52
 
25
53
 
26
54
 

1

追記

2020/06/27 08:09

投稿

takahiro00
takahiro00

スコア84

test CHANGED
File without changes
test CHANGED
@@ -20,9 +20,13 @@
20
20
 
21
21
 
22
22
 
23
+
24
+
25
+
26
+
23
27
  ### 発生している問題・エラーメッセージ
24
28
 
25
-
29
+ インポート時に出るエラー
26
30
 
27
31
  ```
28
32
 
@@ -54,6 +58,28 @@
54
58
 
55
59
  ```
56
60
 
61
+
62
+
63
+ pythonプログラム実行時に出るエラー
64
+
65
+ ```
66
+
67
+ /Users/xx/.conda/envs/xx/bin/python /Users/xx/PycharmProjects/xx/xx/xx.py
68
+
69
+ Traceback (most recent call last):
70
+
71
+ File "/Users/xx/PycharmProjects/xx/xx/xx.py", line 1, in <module>
72
+
73
+ import paramiko
74
+
75
+ ModuleNotFoundError: No module named 'paramiko'
76
+
77
+
78
+
79
+ Process finished with exit code 1
80
+
81
+ ```
82
+
57
83
  ### 試したこと
58
84
 
59
85
  以下のコマンドでpip3のバージョンをあげてもダメでした。