/usr/bin/install: 无法更改“/usr/local/python397/bin“ 的权限: 没有那个文件或目录
dragoo1
于 2021-09-21 16:39:21 发布
阅读量3.7k
收藏 9
点赞数 4
分类专栏: python 文章标签: python install 没有那个文件或目录
版权
python
专栏收录该内容
3 篇文章0 订阅
订阅专栏
编译python3.9.7时报错:
hbj@hbj-virtual-machine:/usr/local/python397/Python-3.9.7$ sudo make -j8 && make altinstall
CC='gcc -pthread' LDSHARED='gcc -pthread -shared ' OPT='-DNDEBUG -g -fwrapv -O3 -Wall' _TCLTK_INCLUDES='' _TCLTK_LIBS='' ./python -E ./setup.py build
running build
running build_ext
Python build finished successfully!
The necessary bits to build these optional modules were not found:
_uuid
To find the necessary bits, look in setup.py in detect_modules() for the module's name.
The following modules found by detect_modules() in setup.py, have been
built by the Makefile instead, as configured by the Setup files:
_abc atexit pwd
time
running build_scripts
copying and adjusting /usr/local/python397/Python-3.9.7/Tools/scripts/pydoc3 -> build/scripts-3.9
copying and adjusting /usr/local/python397/Python-3.9.7/Tools/scripts/idle3 -> build/scripts-3.9
copying and adjusting /usr/local/python397/Python-3.9.7/Tools/scripts/2to3 -> build/scripts-3.9
changing mode of build/scripts-3.9/pydoc3 from 644 to 755
changing mode of build/scripts-3.9/idle3 from 644 to 755
changing mode of build/scripts-3.9/2to3 from 644 to 755
renaming build/scripts-3.9/pydoc3 to build/scripts-3.9/pydoc3.9
renaming build/scripts-3.9/idle3 to build/scripts-3.9/idle3.9
renaming build/scripts-3.9/2to3 to build/scripts-3.9/2to3-3.9
Creating directory /usr/local/python397/bin
/usr/bin/install: 无法更改"/usr/local/python397/bin" 的权限: 没有那个文件或目录
Creating directory /usr/local/python397/lib
/usr/bin/install: 无法更改"/usr/local/python397/lib" 的权限: 没有那个文件或目录
Makefile:1313: recipe for target 'altbininstall' failed
make: *** [altbininstall] Error 1
解决方法:
单独执行sudo make altinstall
————————————————
版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
原文链接:https://blog.csdn.net/dragoo1/article/details/120402884
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 提示词工程——AI应用必不可少的技术
· 地球OL攻略 —— 某应届生求职总结
· 字符编码:从基础到乱码解决
· SpringCloud带你走进微服务的世界
2017-03-06 如何在LOADRUNNER中插入检查点
2017-03-06 LOADRUNNER重装经验
2017-03-06 How to uninstall LoadRunner completely?