ubuntu python3.8安装第三方库astroscrappy出现的问题及解决方法记录

本文记录了在使用Python安装Astroscrappy过程中遇到的错误,并提供了详细的解决方案,包括安装必要的依赖包。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Defaulting to user installation because normal site-packages is not writeable
Collecting astroscrappy
  Using cached astroscrappy-1.0.8.tar.gz (449 kB)
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3.8 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-hrypw0uc/astroscrappy_698d83c789de4fc7b154bdfcb64960cf/setup.py'"'"'; __file__='"'"'/tmp/pip-install-hrypw0uc/astroscrappy_698d83c789de4fc7b154bdfcb64960cf/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-viduca_0
         cwd: /tmp/pip-install-hrypw0uc/astroscrappy_698d83c789de4fc7b154bdfcb64960cf/
    Complete output (59 lines):
      ERROR: Command errored out with exit status 1:
       command: /usr/bin/python3.8 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-wheel-9kn9l6h7/astropy-helpers_442ddd241fae4a98990334bb16bffc92/setup.py'"'"'; __file__='"'"'/tmp/pip-wheel-9kn9l6h7/astropy-helpers_442ddd241fae4a98990334bb16bffc92/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-9idh6644
           cwd: /tmp/pip-wheel-9kn9l6h7/astropy-helpers_442ddd241fae4a98990334bb16bffc92/
      Complete output (6 lines):
      usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
         or: setup.py --help [cmd1 cmd2 ...]
         or: setup.py --help-commands
         or: setup.py cmd --help
    
      error: invalid command 'bdist_wheel'
      ----------------------------------------
      ERROR: Failed building wheel for astropy-helpers
    ERROR: Failed to build one or more wheels

 

 

解决方法:

sudo apt-get install python3.6-dev
sudo apt-get install wheel

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值