在Pycharm中安装软件包

9
我在Windows 7机器上安装了PyCharm Community Edition 3.0,并尝试安装一些常见的包,如numpy、scipy... 我完全按照JetBrains网站上的说明http://www.jetbrains.com/pycharm/webhelp/installing-uninstalling-and-upgrading-packages.html操作,但安装总是失败... "安装包失败:安装numpy包时出现错误..."
  Running setup.py egg_info for package numpy
    Forcing DISTUTILS_USE_SDK=1
    non-existing path in 'numpy\\distutils': 'site.cfg'
    F2PY Version 2
    blas_opt_info:
    blas_mkl_info:
      libraries mkl,vml,guide not found in ['C:\\Python27\\lib', 'C:\\', 'C:\\Python27\\libs']
      NOT AVAILABLE

atlas_blas_threads_info:
Setting PTATLAS=ATLAS
  libraries ptf77blas,ptcblas,atlas not found in ['C:\\Python27\\lib', 'C:\\', 'C:\\Python27\\libs']
  NOT AVAILABLE

atlas_blas_info:
  libraries f77blas,cblas,atlas not found in ['C:\\Python27\\lib', 'C:\\', 'C:\\Python27\\libs']
  NOT AVAILABLE

blas_info:
  libraries blas not found in ['C:\\Python27\\lib', 'C:\\', 'C:\\Python27\\libs']
  NOT AVAILABLE

blas_src_info:
  NOT AVAILABLE

  NOT AVAILABLE

lapack_opt_info:
lapack_mkl_info:
mkl_info:
  libraries mkl,vml,guide not found in ['C:\\Python27\\lib', 'C:\\', 'C:\\Python27\\libs']
  NOT AVAILABLE

  NOT AVAILABLE

atlas_threads_info:
Setting PTATLAS=ATLAS
  libraries ptf77blas,ptcblas,atlas not found in C:\Python27\lib
  libraries lapack_atlas not found in C:\Python27\lib
  libraries ptf77blas,ptcblas,atlas not found in C:\
  libraries lapack_atlas not found in C:\
  libraries ptf77blas,ptcblas,atlas not found in C:\Python27\libs
  libraries lapack_atlas not found in C:\Python27\libs
numpy.distutils.system_info.atlas_threads_info
  NOT AVAILABLE

atlas_info:
  libraries f77blas,cblas,atlas not found in C:\Python27\lib
  libraries lapack_atlas not found in C:\Python27\lib
  libraries f77blas,cblas,atlas not found in C:\
  libraries lapack_atlas not found in C:\
  libraries f77blas,cblas,atlas not found in C:\Python27\libs
  libraries lapack_atlas not found in C:\Python27\libs
numpy.distutils.system_info.atlas_info
  NOT AVAILABLE

lapack_info:
  libraries lapack not found in ['C:\\Python27\\lib', 'C:\\', 'C:\\Python27\\libs']
  NOT AVAILABLE

lapack_src_info:
  NOT AVAILABLE

  NOT AVAILABLE

你有任何额外的细节吗? - James A Mohler
下载/解压numpy 正在运行setup.py egg_info以获取numpy软件包的信息 强制使用DISTUTILS_USE_SDK=1 'numpy\distutils'中不存在路径:'site.cfg' F2PY版本2 blas_opt_info: blas_mkl_info: 在['C:\Python27\lib', 'C:\', 'C:\Python27\libs']中未找到库mkl、vml和guide 不可用atlas_blas_threads_info: 设置PTATLAS=ATLAS 在['C:\Python27\lib', 'C:\', 'C:\Python27\libs']中未找到库ptf77blas、ptcblas和atlas 不可用 - tcquant
你需要把它添加到原问题的某个部分。 - James A Mohler
5个回答

6

您不能像这样安装 numpyscipy。根据您的构建和Python版本,从这里安装。


2

0
如果您创建了一个虚拟环境来工作,您仍然可以使用pip像“正常”安装软件包:
lsvirtualenv # check that a virtual environment exists

my_project_folder_VE="/home/${USER}/.virtualenvs" 
my_project="TDD"
cd ${my_project_folder_VE}

source ${my_project}/bin/activate
lssitepackages # check for installed packages

pip install requests numpy pandas

PyCharm会立即更新项目索引,然后您就可以使用了

import pandas as pd

0
大约三年来,我一直使用PyCharm作为我的Python IDE。很奇怪,也很烦人,但通常情况下你会发现无法使用PyCharm安装许多软件包。这种情况已经发生了很多次,以至于我已经停止使用PyCharm来安装软件包。在Mac上,我使用MacPorts来安装软件包。在Windows 7上,我从Games Brainiac提到的非官方Windows二进制网站下载软件包。

0

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接