m0_46546132 2023-08-14 12:30 采纳率: 0%
浏览 12

pyenv install python失败

mac m1 使用pyenv 安装过去的python版本,安装失败

/var/folders/1p/zcvph3wd4z7cb0kpj13xhf1r0000gn/T/python-build.20230814121522.31691 ~

08/14 12:15:23 [[1;32mNOTICE[0m] Downloading 1 item(s)

08/14 12:15:23 [[1;32mNOTICE[0m] Allocating disk space. Use --file-allocation=none to disable it. See --file-allocation option in man page for more details.
[#25d1d3 192KiB/16MiB(1%) CN:1 DL:601KiB ETA:26s]
[#25d1d3 1.2MiB/16MiB(7%) CN:1 DL:0.9MiB ETA:15s]
[#25d1d3 2.3MiB/16MiB(14%) CN:1 DL:0.9MiB ETA:15s]
[#25d1d3 3.7MiB/16MiB(23%) CN:1 DL:1.0MiB ETA:11s]
[#25d1d3 4.4MiB/16MiB(27%) CN:1 DL:0.9MiB ETA:11s]
[#25d1d3 5.1MiB/16MiB(31%) CN:1 DL:0.9MiB ETA:11s]
[#25d1d3 5.4MiB/16MiB(34%) CN:1 DL:845KiB ETA:12s]
[#25d1d3 6.3MiB/16MiB(39%) CN:1 DL:847KiB ETA:11s]
[#25d1d3 7.0MiB/16MiB(43%) CN:1 DL:833KiB ETA:11s]
[#25d1d3 7.5MiB/16MiB(47%) CN:1 DL:807KiB ETA:10s]
[#25d1d3 8.1MiB/16MiB(50%) CN:1 DL:776KiB ETA:10s]
[#25d1d3 8.5MiB/16MiB(53%) CN:1 DL:682KiB ETA:11s]
[#25d1d3 8.9MiB/16MiB(56%) CN:1 DL:614KiB ETA:11s]
[#25d1d3 9.4MiB/16MiB(59%) CN:1 DL:569KiB ETA:11s]
[#25d1d3 10MiB/16MiB(63%) CN:1 DL:569KiB ETA:10s]
[#25d1d3 10MiB/16MiB(67%) CN:1 DL:613KiB ETA:8s]
[#25d1d3 11MiB/16MiB(71%) CN:1 DL:592KiB ETA:7s]
[#25d1d3 12MiB/16MiB(75%) CN:1 DL:586KiB ETA:6s]
[#25d1d3 12MiB/16MiB(79%) CN:1 DL:589KiB ETA:5s]
[#25d1d3 13MiB/16MiB(82%) CN:1 DL:577KiB ETA:5s]
[#25d1d3 13MiB/16MiB(85%) CN:1 DL:586KiB ETA:4s]
[#25d1d3 14MiB/16MiB(90%) CN:1 DL:620KiB ETA:2s]
[#25d1d3 15MiB/16MiB(95%) CN:1 DL:674KiB ETA:1s]

08/14 12:15:47 [[1;32mNOTICE[0m] Download complete: ./Python-3.6.0.tar.xz

Download Results:
gid   |stat|avg speed  |path/URI
======+====+===========+=======================================================
25d1d3|OK  |   699KiB/s|./Python-3.6.0.tar.xz

Status Legend:
(OK):download completed.
/var/folders/1p/zcvph3wd4z7cb0kpj13xhf1r0000gn/T/python-build.20230814121522.31691/Python-3.6.0 /var/folders/1p/zcvph3wd4z7cb0kpj13xhf1r0000gn/T/python-build.20230814121522.31691 ~
checking build system type... arm-apple-darwin22.6.0
checking host system type... arm-apple-darwin22.6.0
checking for python3.6... no
checking for python3... python3
checking for --enable-universalsdk... no
checking for --with-universal-archs... no
checking MACHDEP... darwin
checking for --without-gcc... no
checking for --with-icc... no
checking for gcc... clang
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether clang accepts -g... yes
checking for clang option to accept ISO C89... none needed
checking how to run the C preprocessor... clang -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for a sed that does not truncate output... /usr/bin/sed
checking for --with-cxx-main=<compiler>... no
checking for clang++... no
configure:

  By default, distutils will build C++ extension modules with "clang++".
  If this is not intended, then set CXX on the configure command line.
  
checking for the platform triplet based on compiler characteristics... darwin
configure: error: internal configure error for the platform triplet, please file a bug report
make: *** No targets specified and no makefile found.  Stop.


  • 写回答

1条回答 默认 最新

  • CSDN-Ada助手 CSDN-AI 官方账号 2023-08-14 14:15
    关注

    【以下回答由 GPT 生成】

    问题:在使用pyenv安装过去的python版本时遇到了什么问题? 由于没有具体的错误信息或日志内容,我无法提供详细的解决方案。但是,我可以给出一般性的步骤来解决常见的pyenv安装问题。

    解决方案: 1. 首先,确保您的操作系统支持pyenv以及您想要安装的特定python版本。可以通过查看pyenv文档或官方网站获得此信息。

    1. 确保您已经安装了所需的依赖项。pyenv在安装过程中可能需要一些额外的依赖项,比如C编译器等。可以参考pyenv的文档或官方网站来获取这些依赖项列表。

    2. 安装pyenv。可以使用包管理器(如Homebrew)或从源代码手动安装pyenv。根据您的操作系统和计算机型号,可以选择适合的安装方法。可以参考pyenv的文档或官方网站了解详细的安装步骤。

    3. 更新pyenv。在确保pyenv成功安装后,可以运行pyenv update命令来更新pyenv和其插件。

    4. 安装所需的python版本。使用pyenv install命令,并指定所需的python版本号来安装特定版本的python。例如,pyenv install 3.7.9将安装Python 3.7.9版本。

    如果您遇到任何错误或问题,请尽可能提供详细的错误信息或日志内容,以便我可以更具体地帮助您解决问题。



    【相关推荐】



    如果你已经解决了该问题, 非常希望你能够分享一下解决方案, 写成博客, 将相关链接放在评论区, 以帮助更多的人 ^-^
    评论

报告相同问题?

问题事件

  • 创建了问题 8月14日

悬赏问题

  • ¥15 为啥画版图在Run DRC会出现Connect Error?可我Calibre的hostname和计算机的hostname已经设置成一样的了。
  • ¥20 网站后台使用极速模式非常的卡
  • ¥20 Keil uVision5创建project没反应
  • ¥15 mmseqs内存报错
  • ¥15 vika文档如何与obsidian同步
  • ¥15 华为手机相册里面的照片能够替换成自己想要的照片吗?
  • ¥15 陆空双模式无人机飞控设置
  • ¥15 sentaurus lithography
  • ¥100 求抖音ck号 或者提ck教程
  • ¥15 关于#linux#的问题:子进程1等待子进程A、B退出后退出(语言-c语言)