質問編集履歴

3

スペルミス

2018/10/24 13:53

投稿

aine_
aine_

スコア22

test CHANGED
File without changes
test CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  を実行すると
6
6
 
7
- ```commandopronpt
7
+ ```commandpronpt
8
8
 
9
9
  Collecting PySPH
10
10
 

2

コード修正

2018/10/24 13:53

投稿

aine_
aine_

スコア22

test CHANGED
File without changes
test CHANGED
@@ -3,6 +3,8 @@
3
3
  C:\Users\(ユーザー名)>pip install PySPH
4
4
 
5
5
  を実行すると
6
+
7
+ ```commandopronpt
6
8
 
7
9
  Collecting PySPH
8
10
 
@@ -90,6 +92,10 @@
90
92
 
91
93
  Command "python setup.py egg_info" failed with error code 1 in c:\users\h35f7~1.ooy\appdata\local\temp\pip-install-ksdyhc\PySPH\
92
94
 
95
+
96
+
97
+ ```
98
+
93
99
  となりインストールできません
94
100
 
95
101
  PySPHというのはパッケージ名です。

1

エラーコード修正

2018/10/24 13:52

投稿

aine_
aine_

スコア22

test CHANGED
File without changes
test CHANGED
@@ -1,12 +1,98 @@
1
1
  コマンドプロンプトで
2
2
 
3
- pip install (パッケージ名)
3
+ C:\Users\(ユーザー名)>pip install PySPH
4
4
 
5
- を実行するときまって
5
+ を実行すると
6
6
 
7
- Command "Python setup.py egg_info"failed with error code 1 in c:(ユーザー名)
7
+ Collecting PySPH
8
8
 
9
+ Using cached https://files.pythonhosted.org/packages/2d/05/a951281a3e2371a76a6de3d18f085b0d75f7568629b93d7fa9db3beaed1c/PySPH-1.0a5.tar.gz
10
+
11
+ Complete output from command python setup.py egg_info:
12
+
13
+ Traceback (most recent call last):
14
+
15
+ File "<string>", line 1, in <module>
16
+
17
+ File "c:\users\h35f7~1.ooy\appdata\local\temp\pip-install-ksdyhc\PySPH\setup.py", line 740, in <module>
18
+
19
+ setup_package()
20
+
21
+ File "c:\users\h35f7~1.ooy\appdata\local\temp\pip-install-ksdyhc\PySPH\setup.py", line 670, in setup_package
22
+
23
+ ext_modules = get_basic_extensions() + get_parallel_extensions()
24
+
25
+ File "c:\users\h35f7~1.ooy\appdata\local\temp\pip-install-ksdyhc\PySPH\setup.py", line 258, in get_basic_extensions
26
+
27
+ openmp_compile_args, openmp_link_args, openmp_env = get_openmp_flags()
28
+
29
+ File "c:\users\h35f7~1.ooy\appdata\local\temp\pip-install-ksdyhc\PySPH\setup.py", line 121, in get_openmp_flags
30
+
31
+ pyxbuild.pyx_to_dll(fname, extension, pyxbuild_dir=tmp_dir)
32
+
33
+ File "c:\users\(ユーザー名)\appdata\local\continuum\anaconda2\lib\site-packages\pyximport\pyxbuild.py", line 102, in pyx_to_dll
34
+
35
+ dist.run_commands()
36
+
37
+ File "c:\users\(ユーザー名)\appdata\local\continuum\anaconda2\lib\distutils\dist.py", line 953, in run_commands
38
+
39
+ self.run_command(cmd)
40
+
41
+ File "c:\users\(ユーザー名)\appdata\local\continuum\anaconda2\lib\distutils\dist.py", line 972, in run_command
42
+
43
+ cmd_obj.run()
44
+
45
+ File "c:\users\(ユーザー名)\appdata\local\continuum\anaconda2\lib\site-packages\Cython\Distutils\old_build_ext.py", line 186, in run
46
+
47
+ _build_ext.build_ext.run(self)
48
+
49
+ File "c:\users\(ユーザー名)\appdata\local\continuum\anaconda2\lib\distutils\command\build_ext.py", line 340, in run
50
+
51
+ self.build_extensions()
52
+
53
+ File "c:\users\h.ooyabu\appdata\local\continuum\anaconda2\lib\site-packages\Cython\Distutils\old_build_ext.py", line 194, in build_extensions
54
+
55
+ self.build_extension(ext)
56
+
57
+ File "c:\users\(ユーザー名)\appdata\local\continuum\anaconda2\lib\distutils\command\build_ext.py", line 499, in build_extension
58
+
59
+ depends=ext.depends)
60
+
61
+ File "c:\users\(ユーザー名)\appdata\local\continuum\anaconda2\lib\distutils\msvc9compiler.py", line 473, in compile
62
+
63
+ self.initialize()
64
+
65
+ File "c:\users\(ユーザー名)\appdata\local\continuum\anaconda2\lib\distutils\msvc9compiler.py", line 383, in initialize
66
+
67
+ vc_env = query_vcvarsall(VERSION, plat_spec)
68
+
69
+ File "c:\users\(ユーザー名)\appdata\local\continuum\anaconda2\lib\site-packages\setuptools\msvc.py", line 147, in msvc9_query_vcvarsall
70
+
71
+ return EnvironmentInfo(arch, ver).return_env()
72
+
73
+ File "c:\users\(ユーザー名)\appdata\local\continuum\anaconda2\lib\site-packages\setuptools\msvc.py", line 1227, in return_env
74
+
75
+ [self.VCIncludes,
76
+
77
+ File "c:\users\(ユーザー名)\appdata\local\continuum\anaconda2\lib\site-packages\setuptools\msvc.py", line 876, in VCIncludes
78
+
79
+ return [os.path.join(self.si.VCInstallDir, 'Include'),
80
+
81
+ File "c:\users\(ユーザー名)\appdata\local\continuum\anaconda2\lib\site-packages\setuptools\msvc.py", line 555, in VCInstallDir
82
+
83
+ raise distutils.errors.DistutilsPlatformError(msg)
84
+
85
+ distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 9.0 is required. Get it from http://aka.ms/vcpython27
86
+
87
+
88
+
89
+ ----------------------------------------
90
+
91
+ Command "python setup.py egg_info" failed with error code 1 in c:\users\h35f7~1.ooy\appdata\local\temp\pip-install-ksdyhc\PySPH\
92
+
9
- 表示されインストールできません
93
+ なりインストールできません
94
+
95
+ PySPHというのはパッケージ名です。
10
96
 
11
97
  調べたところpip install --upgrade setuptoolsをすればよいとのことでしたが
12
98