PythonPIP安装";错误:命令出错,退出状态为“1”;

PythonPIP安装";错误:命令出错,退出状态为“1”;,python,pip,Python,Pip,我正在尝试pip安装telewavesim(按照说明进行),但我收到了此错误。我在Windows10上运行这个 我搜索了一个答案,并尝试以管理员的身份运行,但得到了相同的错误。我也试过了 pip install --upgrade setuptools pip install ez_setup 但仍然会得到相同的错误 有什么想法吗 ERROR: Command errored out with exit status 1: command: 'C:\Users\ckh_000\a

我正在尝试
pip安装telewavesim
(按照说明进行),但我收到了此错误。我在Windows10上运行这个

我搜索了一个答案,并尝试以管理员的身份运行,但得到了相同的错误。我也试过了

pip install --upgrade setuptools
pip install ez_setup
但仍然会得到相同的错误

有什么想法吗

 ERROR: Command errored out with exit status 1:
      command: 'C:\Users\ckh_000\anaconda3\envs\tws\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] =
 '"'"'C:\\Users\\CKH_~1\\AppData\\Local\\Temp\\pip-install-ax5p37i5\\telewavesim\\setup.py'"'"';
 __file__='"'"'C:\\Users\\CKH_~1\\AppData\\Local\\Temp\\pip-install-ax5p37i5\\telewavesim\\setup.py'"'"';f=getattr(tokenize,
 '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"',
 '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))'
 egg_info --egg-base
 'C:\Users\CKH_~1\AppData\Local\Temp\pip-pip-egg-info-zfutbqc4'

 cwd: C:\Users\CKH_~1\AppData\Local\Temp\pip-install-ax5p37i5\telewavesim\

 Complete output (11 lines):

 C:\Users\ckh_000\anaconda3\envs\tws\lib\site-packages\numpy\distutils\system_info.py:811:
 UserWarning: Specified path
 D:\bld\numpy_1584937762393\_h_env\Library\lib is invalid.
return self.get_paths(self.section, key)

Traceback (most recent call last):

File "<string>", line 1, in <module>

File "C:\Users\CKH_~1\AppData\Local\Temp\pip-install-ax5p37i5\telewavesim\setup.py",
 line 23, in <module>
version=find_version('telewavesim', '__init__.py'),

File "C:\Users\CKH_~1\AppData\Local\Temp\pip-install-ax5p37i5\telewavesim\setup.py",
 line 9, in find_version

code = fp.read()

File "C:\Users\ckh_000\anaconda3\envs\tws\lib\encodings\cp1252.py", line
 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]

UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 7522: character maps to <undefined>

---------------------------------------- ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for
 full command output.
错误:命令出错,退出状态为1:
命令:“C:\Users\ckh\u 000\anaconda3\envs\tws\python.exe'-C”import sys,setuptools,tokenize;sys.argv[0]=
“'C:\\Users\\CKH\u1\\AppData\\Local\\Temp\\pip-install-ax5p37i5\\telewavesim\\setup.py'”;
__文件“''''C:\\Users\\CKH\u1\\AppData\\Local\\Temp\\pip-install-ax5p37i5\\telewavesim\\setup.py''”;f=getattr(标记化,
““‘打开’”,打开)(文件);code=f.read().replace('\r\n''',
“'\n''”;f、 close();exec(编译(代码,文件,exec)
鸡蛋信息——鸡蛋基础
'C:\Users\CKH\uu1\AppData\Local\Temp\pip-pip-egg-info-zfutbqc4'
cwd:C:\Users\CKH\u1\AppData\Local\Temp\pip-install-ax5p37i5\telewavesim\
完整输出(11行):
C:\Users\ckh\u 000\anaconda3\envs\tws\lib\site packages\numpy\distutils\system\u info.py:811:
UserWarning:指定的路径
D:\bld\numpy\U 158493762393\\U h\U env\Library\lib无效。
返回self.get_路径(self.section,key)
回溯(最近一次呼叫最后一次):
文件“”,第1行,在
文件“C:\Users\CKH\u1\AppData\Local\Temp\pip-install-ax5p37i5\telewavesim\setup.py”,
第23行,在
版本=查找版本('telewavesim','Uuuu init_uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu.py'),
文件“C:\Users\CKH\u1\AppData\Local\Temp\pip-install-ax5p37i5\telewavesim\setup.py”,
第9行,在find_版本中
code=fp.read()
文件“C:\Users\ckh\u 000\anaconda3\envs\tws\lib\encodings\cp1252.py”,第行
23,在解码中
返回编解码器.charmap\u解码(输入、自身错误、解码表)[0]
UnicodeDecodeError:“charmap”编解码器无法解码位置7522中的字节0x9d:字符映射到
----------------------------------------错误:命令出错,退出状态为1:python setup.py egg\u info检查日志中的
完整命令输出。
编辑:

这是我尝试从源代码安装时的结果。 我看到了有关fortran编译器的错误-我确实安装了gfortran。网站上说“将fortran编译器包添加到上面的conda环境调用中”,我试过了,但我认为我做得不对。我只是将fortran编译器添加到-c标志中,但这似乎不起作用

Processing c:\users\ckh_000\documents\telewavesim
Requirement already satisfied: numpy>=1.15 in c:\users\ckh_000\anaconda3\lib\site-packages (from telewavesim==0.2.0) (1.18.1)
Collecting obspy>=1.0.0
  Downloading obspy-1.2.1-cp37-cp37m-win_amd64.whl (21.7 MB)
     |████████████████████████████████| 21.7 MB 40 kB/s
Requirement already satisfied: matplotlib in c:\users\ckh_000\anaconda3\lib\site-packages (from telewavesim==0.2.0) (3.1.3)
Requirement already satisfied: decorator in c:\users\ckh_000\anaconda3\lib\site-packages (from obspy>=1.0.0->telewavesim==0.2.0) (4.4.1)
Requirement already satisfied: setuptools in c:\users\ckh_000\anaconda3\lib\site-packages (from obspy>=1.0.0->telewavesim==0.2.0) (46.1.3)
Requirement already satisfied: future>=0.12.4 in c:\users\ckh_000\anaconda3\lib\site-packages (from obspy>=1.0.0->telewavesim==0.2.0) (0.18.2)
Requirement already satisfied: scipy>=0.9.0 in c:\users\ckh_000\anaconda3\lib\site-packages (from obspy>=1.0.0->telewavesim==0.2.0) (1.4.1)
Requirement already satisfied: lxml in c:\users\ckh_000\anaconda3\lib\site-packages (from obspy>=1.0.0->telewavesim==0.2.0) (4.5.0)
Requirement already satisfied: sqlalchemy in c:\users\ckh_000\anaconda3\lib\site-packages (from obspy>=1.0.0->telewavesim==0.2.0) (1.3.13)
Requirement already satisfied: requests in c:\users\ckh_000\anaconda3\lib\site-packages (from obspy>=1.0.0->telewavesim==0.2.0) (2.22.0)
Requirement already satisfied: kiwisolver>=1.0.1 in c:\users\ckh_000\anaconda3\lib\site-packages (from matplotlib->telewavesim==0.2.0) (1.1.0)
Requirement already satisfied: cycler>=0.10 in c:\users\ckh_000\anaconda3\lib\site-packages (from matplotlib->telewavesim==0.2.0) (0.10.0)
Requirement already satisfied: python-dateutil>=2.1 in c:\users\ckh_000\anaconda3\lib\site-packages (from matplotlib->telewavesim==0.2.0) (2.8.1)
Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 in c:\users\ckh_000\anaconda3\lib\site-packages (from matplotlib->telewavesim==0.2.0) (2.4.6)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\ckh_000\anaconda3\lib\site-packages (from requests->obspy>=1.0.0->telewavesim==0.2.0) (2019.11.28)
Requirement already satisfied: idna<2.9,>=2.5 in c:\users\ckh_000\anaconda3\lib\site-packages (from requests->obspy>=1.0.0->telewavesim==0.2.0) (2.8)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in c:\users\ckh_000\anaconda3\lib\site-packages (from requests->obspy>=1.0.0->telewavesim==0.2.0) (3.0.4)
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in c:\users\ckh_000\anaconda3\lib\site-packages (from requests->obspy>=1.0.0->telewavesim==0.2.0) (1.25.8)
Requirement already satisfied: six in c:\users\ckh_000\anaconda3\lib\site-packages (from cycler>=0.10->matplotlib->telewavesim==0.2.0) (1.14.0)
Building wheels for collected packages: telewavesim
  Building wheel for telewavesim (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: 'C:\Users\ckh_000\anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\ckh_~1\\AppData\\Local\\Temp\\pip-req-build-_0kjatmr\\setup.py'"'"'; __file__='"'"'C:\\Users\\ckh_~1\\AppData\\Local\\Temp\\pip-req-build-_0kjatmr\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\ckh_~1\AppData\Local\Temp\pip-wheel-8qv0f5f7'
       cwd: C:\Users\ckh_~1\AppData\Local\Temp\pip-req-build-_0kjatmr\
  Complete output (55 lines):
  Could not locate executable g77
  Could not locate executable f77
  Could not locate executable ifort
  Could not locate executable ifl
  Could not locate executable f90
  Could not locate executable DF
  Could not locate executable efl
  Could not locate executable gfortran
  Could not locate executable f95
  Could not locate executable g95
  Could not locate executable efort
  Could not locate executable efc
  Could not locate executable flang
  don't know how to compile Fortran code on platform 'nt'
  C:\Users\ckh_000\anaconda3\lib\site-packages\numpy\distutils\system_info.py:1730: UserWarning:
      Lapack (http://www.netlib.org/lapack/) libraries not found.
      Directories to search for the libraries can be specified in the
      numpy/distutils/site.cfg file (section [lapack]) or by setting
      the LAPACK environment variable.
    return getattr(self, '_calc_info_{}'.format(name))()
  C:\Users\ckh_000\anaconda3\lib\site-packages\numpy\distutils\system_info.py:1730: UserWarning:
      Lapack (http://www.netlib.org/lapack/) sources not found.
      Directories to search for the sources can be specified in the
      numpy/distutils/site.cfg file (section [lapack_src]) or by setting
      the LAPACK_SRC environment variable.
    return getattr(self, '_calc_info_{}'.format(name))()
  C:\Users\ckh_000\anaconda3\lib\site-packages\numpy\distutils\system_info.py:471: UserWarning:
      Lapack (http://www.netlib.org/lapack/) libraries not found.
      Directories to search for the libraries can be specified in the
      numpy/distutils/site.cfg file (section [lapack]) or by setting
      the LAPACK environment variable.
    return cl().get_info(notfound_action)
  running bdist_wheel
  running build
  running config_cc
  unifing config_cc, config, build_clib, build_ext, build commands --compiler options
  running config_fc
  unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
  running build_src
  build_src
  building extension "telewavesim.rmat_f" sources
  f2py options: []
    adding 'build\src.win-amd64-3.7\build\src.win-amd64-3.7\telewavesim\fortranobject.c' to sources.
    adding 'build\src.win-amd64-3.7\build\src.win-amd64-3.7\telewavesim' to include_dirs.
    adding 'build\src.win-amd64-3.7\telewavesim\rmat_f-f2pywrappers2.f90' to sources.
  build_src: building npy-pkg config files
  running build_py
  running build_ext
  No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
  customize MSVCCompiler
  customize MSVCCompiler using build_ext
  warning: build_ext: f77_compiler=None is not available.

  building 'telewavesim.rmat_f' extension
  error: extension 'telewavesim.rmat_f' has Fortran sources but no Fortran compiler found
  ----------------------------------------
  ERROR: Failed building wheel for telewavesim
  Running setup.py clean for telewavesim
Failed to build telewavesim
Installing collected packages: obspy, telewavesim
    Running setup.py install for telewavesim ... error
    ERROR: Command errored out with exit status 1:
     command: 'C:\Users\ckh_000\anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\ckh_~1\\AppData\\Local\\Temp\\pip-req-build-_0kjatmr\\setup.py'"'"'; __file__='"'"'C:\\Users\\ckh_~1\\AppData\\Local\\Temp\\pip-req-build-_0kjatmr\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\ckh_~1\AppData\Local\Temp\pip-record-_oy46s3d\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\ckh_000\anaconda3\Include\telewavesim'
         cwd: C:\Users\ckh_~1\AppData\Local\Temp\pip-req-build-_0kjatmr\
    Complete output (78 lines):
    Could not locate executable g77
    Could not locate executable f77
    Could not locate executable ifort
    Could not locate executable ifl
    Could not locate executable f90
    Could not locate executable DF
    Could not locate executable efl
    Could not locate executable gfortran
    Could not locate executable f95
    Could not locate executable g95
    Could not locate executable efort
    Could not locate executable efc
    Could not locate executable flang
    don't know how to compile Fortran code on platform 'nt'
    C:\Users\ckh_000\anaconda3\lib\site-packages\numpy\distutils\system_info.py:1730: UserWarning:
        Lapack (http://www.netlib.org/lapack/) libraries not found.
        Directories to search for the libraries can be specified in the
        numpy/distutils/site.cfg file (section [lapack]) or by setting
        the LAPACK environment variable.
      return getattr(self, '_calc_info_{}'.format(name))()
    C:\Users\ckh_000\anaconda3\lib\site-packages\numpy\distutils\system_info.py:1730: UserWarning:
        Lapack (http://www.netlib.org/lapack/) sources not found.
        Directories to search for the sources can be specified in the
        numpy/distutils/site.cfg file (section [lapack_src]) or by setting
        the LAPACK_SRC environment variable.
      return getattr(self, '_calc_info_{}'.format(name))()
    C:\Users\ckh_000\anaconda3\lib\site-packages\numpy\distutils\system_info.py:471: UserWarning:
        Lapack (http://www.netlib.org/lapack/) libraries not found.
        Directories to search for the libraries can be specified in the
        numpy/distutils/site.cfg file (section [lapack]) or by setting
        the LAPACK environment variable.
      return cl().get_info(notfound_action)
    running install
    running build
    running config_cc
    unifing config_cc, config, build_clib, build_ext, build commands --compiler options
    running config_fc
    unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
    running build_src
    build_src
    building extension "telewavesim.rmat_f" sources
    f2py options: []
      adding 'build\src.win-amd64-3.7\build\src.win-amd64-3.7\telewavesim\fortranobject.c' to sources.
      adding 'build\src.win-amd64-3.7\build\src.win-amd64-3.7\telewavesim' to include_dirs.
      adding 'build\src.win-amd64-3.7\telewavesim\rmat_f-f2pywrappers2.f90' to sources.
    build_src: building npy-pkg config files
    running build_py
    creating build\lib.win-amd64-3.7
    creating build\lib.win-amd64-3.7\telewavesim
    copying telewavesim\doc.py -> build\lib.win-amd64-3.7\telewavesim
    copying telewavesim\elast.py -> build\lib.win-amd64-3.7\telewavesim
    copying telewavesim\utils.py -> build\lib.win-amd64-3.7\telewavesim
    copying telewavesim\wiggle.py -> build\lib.win-amd64-3.7\telewavesim
    copying telewavesim\__init__.py -> build\lib.win-amd64-3.7\telewavesim
    creating build\lib.win-amd64-3.7\telewavesim\tests
    copying telewavesim\tests\test_0_imports.py -> build\lib.win-amd64-3.7\telewavesim\tests
    copying telewavesim\tests\test_notebooks.py -> build\lib.win-amd64-3.7\telewavesim\tests
    copying telewavesim\tests\test_routines.py -> build\lib.win-amd64-3.7\telewavesim\tests
    copying telewavesim\tests\test_utils.py -> build\lib.win-amd64-3.7\telewavesim\tests
    copying telewavesim\tests\__init__.py -> build\lib.win-amd64-3.7\telewavesim\tests
    creating build\lib.win-amd64-3.7\telewavesim\examples
    copying telewavesim\examples\0-Start-Here.ipynb -> build\lib.win-amd64-3.7\telewavesim\examples
    creating build\lib.win-amd64-3.7\telewavesim\examples\models
    copying telewavesim\examples\models\model_Audet2016.txt -> build\lib.win-amd64-3.7\telewavesim\examples\models
    copying telewavesim\examples\models\model_Porter2011.txt -> build\lib.win-amd64-3.7\telewavesim\examples\models
    copying telewavesim\examples\models\model_SKS.txt -> build\lib.win-amd64-3.7\telewavesim\examples\models
    creating build\lib.win-amd64-3.7\telewavesim\examples\Notebooks
    copying telewavesim\examples\Notebooks\sim_obs_Audet2016.ipynb -> build\lib.win-amd64-3.7\telewavesim\examples\Notebooks
    copying telewavesim\examples\Notebooks\sim_Prfs_Porter2011.ipynb -> build\lib.win-amd64-3.7\telewavesim\examples\Notebooks
    copying telewavesim\examples\Notebooks\sim_SKS.ipynb -> build\lib.win-amd64-3.7\telewavesim\examples\Notebooks
    running build_ext
    No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
    customize MSVCCompiler
    customize MSVCCompiler using build_ext
    warning: build_ext: f77_compiler=None is not available.

    building 'telewavesim.rmat_f' extension
    error: extension 'telewavesim.rmat_f' has Fortran sources but no Fortran compiler found
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\ckh_000\anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\ckh_~1\\AppData\\Local\\Temp\\pip-req-build-_0kjatmr\\setup.py'"'"'; __file__='"'"'C:\\Users\\ckh_~1\\AppData\\Local\\Temp\\pip-req-build-_0kjatmr\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\ckh_~1\AppData\Local\Temp\pip-record-_oy46s3d\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\ckh_000\anaconda3\Include\telewavesim' Check the logs for full command output.
处理c:\users\ckh\u 000\documents\telewavesim
已满足要求:c:\users\ckh\u 000\anaconda3\lib\site软件包中的numpy>=1.15(来自telewavesim==0.2.0)(1.18.1)
收集obspy>=1.0.0
下载obspy-1.2.1-cp37-cp37m-win_amd64.whl(21.7MB)
|████████████████████████████████| 21.7 MB 40 kB/s
已满足要求:c:\users\ckh\u 000\anaconda3\lib\site软件包中的matplotlib(来自telewavesim==0.2.0)(3.1.3)
已满足要求:c:\users\ckh\u 000\anaconda3\lib\site包中的装饰器(来自obspy>=1.0.0->telewavesim==0.2.0)(4.4.1)
已满足要求:c:\users\ckh\u 000\anaconda3\lib\site软件包中的setuptools(来自obspy>=1.0.0->telewavesim==0.2.0)(46.1.3)
已满足要求:c:\users\ckh\u 000\anaconda3\lib\site软件包中的future>=0.12.4(来自obspy>=1.0.0->telewavesim==0.2.0)(0.18.2)
已满足要求:c:\users\ckh\u 000\anaconda3\lib\site软件包中的scipy>=0.9.0(来自obspy>=1.0.0->telewavesim==0.2.0)(1.4.1)
已满足要求:c:\users\ckh\u 000\anaconda3\lib\site软件包中的lxml(来自obspy>=1.0.0->telewavesim==0.2.0)(4.5.0)
已满足要求:c:\users\ckh\u 000\anaconda3\lib\site包中的sqlalchemy(来自obspy>=1.0.0->telewavesim==0.2.0)(1.3.13)
已满足要求:c:\users\ckh\u 000\anaconda3\lib\site包中的请求(来自obspy>=1.0.0->telewavesim==0.2.0)(2.22.0)
已满足要求:c:\users\ckh\u 000\anaconda3\lib\site软件包中的kiwisolver>=1.0.1(来自matplotlib->telewavesim==0.2.0)(1.1.0)
已满足要求:c:\users\ckh\u 000\anaconda3\lib\site软件包中的Cycle>=0.10(来自matplotlib->telewavesim==0.2.0)(0.10.0)
已满足要求:c:\users\ckh\u 000\anaconda3\lib\site包中的python dateutil>=2.1(来自matplotlib->telewavesim==0.2.0)(2.8.1)
已满足要求:pyparsing=2.0.4,!=2.1.2,!=c:\users\ckh\u 000\anaconda3\lib\site软件包中的2.1.6,>=2.0.1(来自matplotlib->telewavesim==0.2.0)(2.4.6)
已满足要求:c:\users\ckh\u 000\anaconda3\lib\site软件包中的certifi>=2017.4.17(来自请求->obspy>=1.0.0->telewavesim==0.2.0)(2019.11.28)
已满足要求:c:\users\ckh\u 000\anaconda3\lib\site软件包中的idna=2.5(来自请求->obspy>=1.0.0->telewavesim==0.2.0)(2.8)
已满足要求:c:\users\ckh\u 000\anaconda3\lib\site软件包中的chardet=3.0.2(来自请求->obspy>=1.0.0->telewavesim==0.2.0)(3.0.4)
已满足要求:urllib3=1.25.0,!=c:\users\ckh\u 000\anaconda3\lib\site软件包中的1.25.1,=1.21.1(来自请求->obspy>=1.0.0->telewavesim==0.2.0)(1.25.8)
已满足要求:c:\users\ckh\u 000\anaconda3\lib\site软件包中有六个(来自cycler>=0.10->matplotlib->telewavesim==0.2.0)(1.14.0)
为收集的包裹构建轮子:telewavesim
正在为telewavesim构建控制盘(setup.py)。。。错误
错误:命令出错,退出状态为1:
命令:“C:\Users\ckh\u 000\anaconda3\python.exe'-u-C'import sys,setuptools,tokenize;sys.argv[0]=“C:\\Users\\ckh\u1\\AppData\\Local\\Temp\\pip req build-\u 0kjatmr\\setup.py”“”__文件“'''''''C:\\Users\\ckh\u1\\AppData\\Local\\Temp\\pip req build-\u 0kjatmr\\setup.py'''”;f=getattr(标记化,“'open'”,open)(\uuuuu文件);code=f.read().replace(“\r\n”“”、“\n”“”);f、 close();exec(编译(代码,“'exec'”)'bdist\u wheel-d'C:\Users\ckh\u1\AppData\Local\Temp\pip-wheel-8qv0f5f7'
cwd:C:\Users\ckh\u1\AppData\Local\Temp\pip-re