Win10,python3.7.4,setuptools和pip已经更新。 我正在尝试使用pip install pycdt安装pycdt软件包:https://pypi.org/project/pycdt/并得到以下错误:
Building wheel for pycdt (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\owen\appdata\local\programs\python\python37-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Owen\\AppData\\Local\\Temp\\pip-install-e4i__dt0\\pycdt\\setup.py'"'"'; __file__='"'"'C:\\Users\\Owen\\AppData\\Local\\Temp\\pip-install-e4i__dt0\\pycdt\\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\Owen\AppData\Local\Temp\pip-wheel-vkaxuqgl'
cwd: C:\Users\Owen\AppData\Local\Temp\pip-install-e4i__dt0\pycdt\
......
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\Owen\AppData\Local\Temp\pip-install-e4i__dt0\pycdt\setup.py", line 42, in <module>
tests_require=["nose"]
File "c:\users\owen\appdata\local\programs\python\python37-32\lib\site-packages\setuptools\__init__.py", line 161, in setup
return distutils.core.setup(**attrs)
File "c:\users\owen\appdata\local\programs\python\python37-32\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "c:\users\owen\appdata\local\programs\python\python37-32\lib\distutils\dist.py", line 966, in run_commands
self.run_command(cmd)
File "c:\users\owen\appdata\local\programs\python\python37-32\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "c:\users\owen\appdata\local\programs\python\python37-32\lib\site-packages\wheel\bdist_wheel.py", line 228, in run
self.run_command('install')
File "c:\users\owen\appdata\local\programs\python\python37-32\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "c:\users\owen\appdata\local\programs\python\python37-32\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "c:\users\owen\appdata\local\programs\python\python37-32\lib\site-packages\setuptools\command\install.py", line 61, in run
return orig.install.run(self)
File "c:\users\owen\appdata\local\programs\python\python37-32\lib\distutils\command\install.py", line 557, in run
self.run_command(cmd_name)
File "c:\users\owen\appdata\local\programs\python\python37-32\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "c:\users\owen\appdata\local\programs\python\python37-32\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "c:\users\owen\appdata\local\programs\python\python37-32\lib\site-packages\setuptools\command\install_egg_info.py", line 34, in run
self.run_command('egg_info')
File "c:\users\owen\appdata\local\programs\python\python37-32\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "c:\users\owen\appdata\local\programs\python\python37-32\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "c:\users\owen\appdata\local\programs\python\python37-32\lib\site-packages\setuptools\command\egg_info.py", line 297, in run
self.find_sources()
File "c:\users\owen\appdata\local\programs\python\python37-32\lib\site-packages\setuptools\command\egg_info.py", line 304, in find_sources
mm.run()
File "c:\users\owen\appdata\local\programs\python\python37-32\lib\site-packages\setuptools\command\egg_info.py", line 535, in run
self.add_defaults()
File "c:\users\owen\appdata\local\programs\python\python37-32\lib\site-packages\setuptools\command\egg_info.py", line 579, in add_defaults
self.read_manifest()
File "c:\users\owen\appdata\local\programs\python\python37-32\lib\site-packages\setuptools\command\sdist.py", line 220, in read_manifest
self.filelist.append(line)
File "c:\users\owen\appdata\local\programs\python\python37-32\lib\site-packages\setuptools\command\egg_info.py", line 477, in append
path = convert_path(item)
File "c:\users\owen\appdata\local\programs\python\python37-32\lib\distutils\util.py", line 110, in convert_path
raise ValueError("path '%s' cannot be absolute" % pathname)
ValueError: path '/Users/dpbroberg/Documents/research/research_codes/pycdcd/scripts/pycdt' cannot be absolute
----------------------------------------
ERROR: Failed building wheel for pycdt
Running setup.py clean for pycdt
Failed to build pycdt
Installing collected packages: pycdt
Running setup.py install for pycdt ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\owen\appdata\local\programs\python\python37-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Owen\\AppData\\Local\\Temp\\pip-install-e4i__dt0\\pycdt\\setup.py'"'"'; __file__='"'"'C:\\Users\\Owen\\AppData\\Local\\Temp\\pip-install-e4i__dt0\\pycdt\\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\Owen\AppData\Local\Temp\pip-record-ryg1aeyj\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\owen\appdata\local\programs\python\python37-32\Include\pycdt'
cwd: C:\Users\Owen\AppData\Local\Temp\pip-install-e4i__dt0\pycdt\
Complete output (80 lines):
running install
running build
running build_py
creating build
creating build\lib
creating build\lib\pycdt
copying pycdt\__init__.py -> build\lib\pycdt
creating build\lib\pycdt\core
copying pycdt\core\chemical_potentials.py -> build\lib\pycdt\core
copying pycdt\core\defectsmaker.py -> build\lib\pycdt\core
copying pycdt\core\defects_analyzer.py -> build\lib\pycdt\core
copying pycdt\core\__init__.py -> build\lib\pycdt\core
creating build\lib\pycdt\corrections
copying pycdt\corrections\finite_size_charge_correction.py -> build\lib\pycdt\corrections
copying pycdt\corrections\freysoldt_correction.py -> build\lib\pycdt\corrections
copying pycdt\corrections\freysoldt_plotter.py -> build\lib\pycdt\corrections
copying pycdt\corrections\kumagai_correction.py -> build\lib\pycdt\corrections
copying pycdt\corrections\ldau_correction.py -> build\lib\pycdt\corrections
copying pycdt\corrections\sxdefect_correction.py -> build\lib\pycdt\corrections
copying pycdt\corrections\utils.py -> build\lib\pycdt\corrections
copying pycdt\corrections\__init__.py -> build\lib\pycdt\corrections
creating build\lib\pycdt\utils
copying pycdt\utils\example_single_file_path_parse.py -> build\lib\pycdt\utils
copying pycdt\utils\log_util.py -> build\lib\pycdt\utils
copying pycdt\utils\parse_calculations.py -> build\lib\pycdt\utils
copying pycdt\utils\plotter.py -> build\lib\pycdt\utils
copying pycdt\utils\units.py -> build\lib\pycdt\utils
copying pycdt\utils\vasp.py -> build\lib\pycdt\utils
copying pycdt\utils\__init__.py -> build\lib\pycdt\utils
copying pycdt\utils\DefectSet.yaml -> build\lib\pycdt\utils
copying pycdt\utils\logging.yaml -> build\lib\pycdt\utils
running install_lib
running install_egg_info
running egg_info
writing pycdt.egg-info\PKG-INFO
writing dependency_links to pycdt.egg-info\dependency_links.txt
writing requirements to pycdt.egg-info\requires.txt
writing top-level names to pycdt.egg-info\top_level.txt
reading manifest file 'pycdt.egg-info\SOURCES.txt'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\Owen\AppData\Local\Temp\pip-install-e4i__dt0\pycdt\setup.py", line 42, in <module>
tests_require=["nose"]
File "c:\users\owen\appdata\local\programs\python\python37-32\lib\site-packages\setuptools\__init__.py", line 161, in setup
return distutils.core.setup(**attrs)
File "c:\users\owen\appdata\local\programs\python\python37-32\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "c:\users\owen\appdata\local\programs\python\python37-32\lib\distutils\dist.py", line 966, in run_commands
self.run_command(cmd)
File "c:\users\owen\appdata\local\programs\python\python37-32\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "c:\users\owen\appdata\local\programs\python\python37-32\lib\site-packages\setuptools\command\install.py", line 61, in run
return orig.install.run(self)
File "c:\users\owen\appdata\local\programs\python\python37-32\lib\distutils\command\install.py", line 557, in run
self.run_command(cmd_name)
File "c:\users\owen\appdata\local\programs\python\python37-32\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "c:\users\owen\appdata\local\programs\python\python37-32\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "c:\users\owen\appdata\local\programs\python\python37-32\lib\site-packages\setuptools\command\install_egg_info.py", line 34, in run
self.run_command('egg_info')
File "c:\users\owen\appdata\local\programs\python\python37-32\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "c:\users\owen\appdata\local\programs\python\python37-32\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "c:\users\owen\appdata\local\programs\python\python37-32\lib\site-packages\setuptools\command\egg_info.py", line 297, in run
self.find_sources()
File "c:\users\owen\appdata\local\programs\python\python37-32\lib\site-packages\setuptools\command\egg_info.py", line 304, in find_sources
mm.run()
File "c:\users\owen\appdata\local\programs\python\python37-32\lib\site-packages\setuptools\command\egg_info.py", line 535, in run
self.add_defaults()
File "c:\users\owen\appdata\local\programs\python\python37-32\lib\site-packages\setuptools\command\egg_info.py", line 579, in add_defaults
self.read_manifest()
File "c:\users\owen\appdata\local\programs\python\python37-32\lib\site-packages\setuptools\command\sdist.py", line 220, in read_manifest
self.filelist.append(line)
File "c:\users\owen\appdata\local\programs\python\python37-32\lib\site-packages\setuptools\command\egg_info.py", line 477, in append
path = convert_path(item)
File "c:\users\owen\appdata\local\programs\python\python37-32\lib\distutils\util.py", line 110, in convert_path
raise ValueError("path '%s' cannot be absolute" % pathname)
ValueError: path '/Users/dpbroberg/Documents/research/research_codes/pycdcd/scripts/pycdt' cannot be absolute
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\owen\appdata\local\programs\python\python37-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Owen\\AppData\\Local\\Temp\\pip-install-e4i__dt0\\pycdt\\setup.py'"'"'; __file__='"'"'C:\\Users\\Owen\\AppData\\Local\\Temp\\pip-install-e4i__dt0\\pycdt\\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\Owen\AppData\Local\Temp\pip-record-ryg1aeyj\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\owen\appdata\local\programs\python\python37-32\Include\pycdt' Check the logs for full command output.
该错误似乎是Windows上绝对路径的错误格式,因为我已在Linux上成功安装了该错误,但是我仍然需要在Windows上安装它,因此我应该如何修改它? 非常感谢!