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
4

5 回答 5

6

你不能安装numpyscipy喜欢这样。根据您的构建和 Python 版本,从此处安装它。

于 2013-10-14T20:49:08.207 回答
2

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

希望这可以帮助!

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

于 2015-04-02T08:33:19.033 回答
0

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

于 2014-06-23T13:06:39.417 回答
0

从http://sourceforge.net/projects/numpy/files/NumPy/1.9.2/numpy-1.9.2-win32-superpack-python3.4.exe/download下载 numpy 的可执行文件

它也适用于 Window 7。

谢谢劳斯塔

于 2015-06-24T15:50:48.543 回答
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
于 2018-04-18T08:48:41.263 回答