在Pycharm中安装软件包

时间:2013-10-14 16:22:46

标签: python package pycharm

我在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

5 个答案:

答案 0 :(得分:6)

您无法像这样安装numpyscipy。根据您的构建版本和Python版本,安装它from here

答案 1 :(得分:2)

我有同样的问题试图为python 3.4安装numpy 1.9.2(最新版本于2015年4月2日) 我设法通过从http://sourceforge.net/projects/numpy/files/NumPy/1.9.2/numpy-1.9.2-win32-superpack-python3.4.exe/download下载.exe来解决此问题 现在我可以在pycharm中使用Numpy

希望这有帮助!

我也使用Windows 10 TP,所以我猜这应该适用于Win7 / 8 / 8.1 aswel

答案 2 :(得分:0)

大约3年来,我一直使用PyCharm作为我选择的Python IDE。这很奇怪,也很烦人,但经常是这样,你经常无法使用PyCharm来安装很多软件包。这已经发生了很多次,我刚刚停止使用PyCharm来安装软件包。使用Mac,我使用MacPorts安装软件包。在Windows 7中,我从Games Brainiac上面提到的Unofficial Windows Binary站点下载软件包。

答案 3 :(得分:0)

http://sourceforge.net/projects/numpy/files/NumPy/1.9.2/numpy-1.9.2-win32-superpack-python3.4.exe/download

下载numpy的可执行文件

它也适用于Window 7。

感谢Rausta

答案 4 :(得分: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