teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

3

誤記訂正

2020/08/28 02:48

投稿

pokemonta
pokemonta

スコア170

title CHANGED
File without changes
body CHANGED
@@ -49,17 +49,15 @@
49
49
 
50
50
  まったく原因がわかりません。
51
51
 
52
- 8/28 追加調査
52
+ ーーーーーーーーー8/28 追加調査ーーーーーーーーー
53
- .vscode/setting.jsonのpythonPathの設定がおかしいため
53
+ 【参考サイト】vscode/setting.jsonのpythonPathの設定がおかしいためimportエラー
54
- importエラー
55
54
  [リンク内容](https://qiita.com/dynamonda/items/5a8129cd6e9cc139d94a)
56
55
 
57
- 問題ないか調査
56
+ 問題ないか追加調査実施。結果は以下の通り
58
57
 
59
58
 
60
59
  >conda info -e
61
- # conda environments:
60
+
62
- #
63
61
  base * C:\Anaconda3
64
62
 
65
63
  ・ユーザ設定のsetting.json

2

追加調査

2020/08/28 02:48

投稿

pokemonta
pokemonta

スコア170

title CHANGED
File without changes
body CHANGED
@@ -47,4 +47,29 @@
47
47
 
48
48
  同様のエラー
49
49
 
50
- まったく原因がわかりません。
50
+ まったく原因がわかりません。
51
+
52
+ 8/28 追加調査
53
+ .vscode/setting.jsonのpythonPathの設定がおかしいため
54
+ importエラー
55
+ [リンク内容](https://qiita.com/dynamonda/items/5a8129cd6e9cc139d94a)
56
+
57
+ 問題ないか調査
58
+
59
+
60
+ >conda info -e
61
+ # conda environments:
62
+ #
63
+ base * C:\Anaconda3
64
+
65
+ ・ユーザ設定のsetting.json
66
+ "python.linting.enabled": true,
67
+ "python.linting.pylintEnabled": true,
68
+ "python.pythonPath": "C:\Anaconda3\python.exe",
69
+ "python.condaPath": "C:\Anaconda3\condabin\conda.bat"
70
+
71
+ ・ワークスペースのsetting.json
72
+ "python.pythonPath": "C:\Anaconda3\python.exe",
73
+ "python.condaPath": "C:\Anaconda3\condabin\conda.bat"
74
+
75
+ ちゃんと指定できてそう

1

追加

2020/08/28 02:46

投稿

pokemonta
pokemonta

スコア170

title CHANGED
File without changes
body CHANGED
@@ -35,4 +35,16 @@
35
35
 
36
36
  Import "hello_world" could not be resolvedPylance (reportMissingImports)
37
37
 
38
+ import sys
39
+ sys.path.append('../hello_world')
40
+ import app
41
+
42
+ 同様のエラー
43
+
44
+ import sys
45
+ sys.path.append('hello_world')
46
+ import app
47
+
48
+ 同様のエラー
49
+
38
50
  まったく原因がわかりません。