python - pip 安装 math3d - 错误
问题描述
在尝试使用 pip install 为 Python 安装 math3d 或 urx 库时,我经常遇到错误。我正在使用 Windows 10 和 Python 3.7.3。
我试图: - 卸载/安装 python 并尝试旧版本 3.4.4 .. 没有任何效果。- 升级 setuptools - 升级 pip(然后我得到更多错误)
这是我的错误:
C:\Users\alen.kolman\Desktop\math3d-3.3.4>pip install math3d
Collecting math3d
Using cached https://files.pythonhosted.org/packages/9a/33/72ac95bb4ac11a2b13e033d90f84430dc23fc815124d9303dffca8789a75/math3d-3.3.4.tar.gz
Installing collected packages: math3d
Running setup.py install for math3d ... error
Complete output from command c:\python34\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\ALEN~1.KOL\\AppData\\Local\\Temp\\pip-install-jihuupoe\\math3d\\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\ALEN~1.KOL\AppData\Local\Temp\pip-record-3r05scnh\install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build\lib
creating build\lib\math3d
copying math3d\orientation.py -> build\lib\math3d
copying math3d\orientation_computer.py -> build\lib\math3d
copying math3d\quaternion.py -> build\lib\math3d
copying math3d\transform.py -> build\lib\math3d
copying math3d\utils.py -> build\lib\math3d
copying math3d\vector.py -> build\lib\math3d
copying math3d\__init__.py -> build\lib\math3d
creating build\lib\math3d\interpolation
copying math3d\interpolation\r3interpolation.py -> build\lib\math3d\interpolation
copying math3d\interpolation\se3interpolation.py -> build\lib\math3d\interpolation
copying math3d\interpolation\so3interpolation.py -> build\lib\math3d\interpolation
copying math3d\interpolation\__init__.py -> build\lib\math3d\interpolation
creating build\lib\math3d\reference_system
copying math3d\reference_system\frame.py -> build\lib\math3d\reference_system
copying math3d\reference_system\free_vector.py -> build\lib\math3d\reference_system
copying math3d\reference_system\point.py -> build\lib\math3d\reference_system
copying math3d\reference_system\reference_system.py -> build\lib\math3d\reference_system
copying math3d\reference_system\__init__.py -> build\lib\math3d\reference_system
creating build\lib\math3d\dynamics
copying math3d\dynamics\twist.py -> build\lib\math3d\dynamics
copying math3d\dynamics\wrench.py -> build\lib\math3d\dynamics
copying math3d\dynamics\__init__.py -> build\lib\math3d\dynamics
creating build\lib\math3d\geometry
copying math3d\geometry\line.py -> build\lib\math3d\geometry
copying math3d\geometry\plane.py -> build\lib\math3d\geometry
copying math3d\geometry\__init__.py -> build\lib\math3d\geometry
running install_lib
running install_data
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\ALEN~1.KOL\AppData\Local\Temp\pip-install-jihuupoe\math3d\setup.py", line 23, in <module>
data_files=[('share/doc/pymath3d/', ['README.md', 'COPYING'])]
File "c:\python34\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "c:\python34\lib\distutils\dist.py", line 966, in run_commands
self.run_command(cmd)
File "c:\python34\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "c:\python34\lib\site-packages\setuptools\command\install.py", line 61, in run
return orig.install.run(self)
File "c:\python34\lib\distutils\command\install.py", line 557, in run
self.run_command(cmd_name)
File "c:\python34\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "c:\python34\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "c:\python34\lib\distutils\command\install_data.py", line 56, in run
dir = convert_path(f[0])
File "c:\python34\lib\distutils\util.py", line 112, in convert_path
raise ValueError("path '%s' cannot end with '/'" % pathname)
ValueError: path 'share/doc/pymath3d/' cannot end with '/'
----------------------------------------
Command "c:\python34\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\ALEN~1.KOL\\AppData\\Local\\Temp\\pip-install-jihuupoe\\math3d\\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\ALEN~1.KOL\AppData\Local\Temp\pip-record-3r05scnh\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\ALEN~1.KOL\AppData\Local\Temp\pip-install-jihuupoe\math3d\
解决方案
推荐阅读
- git - 可以在本地克隆(svn-imported)Git 存储库,但不能远程克隆
- javascript - 用phpunit测试一个try catch store方法来测试异常
- c++ - 特征中的向量加法和点不通过 mkl 加速
- javascript - 检查日期字符串是否为 ISO 和 UTC 格式
- bluetooth-lowenergy - 如何通过网络管理蓝牙信标?
- rest - 如何获得整个项目未更新的通知(活动+聊天等)
- python - 在python的列表中查找所有无项的索引
- c# - 在不同的配置上禁用 VSTO 签名
- python - 带循环的 Pygame 函数
- mysql - 获取按用户上次登录日期排序的最新组 DESC