Try to do a development build with 3.4 (have previously managed in 2.7). Python is just an anaconda installation on osx10.10. I can get
尝试使用3.4进行开发构建(以前在2.7中进行过管理)。Python只是osx10.10上的一个anaconda安装。我可以得到
I:
我:
- git cloned pandas
- git克隆大熊猫
- ran python setup.py build_ext --inplace (got no errors)
- 运行python设置。py build_ext—inplace(没有错误)
- ran python setup.py develop.
- 运行python设置。py发展。
But when I try and import pandas I get:
但当我尝试进口熊猫时,我得到:
import pandas as pd
Traceback (most recent call last):
File "<ipython-input-2-af55e7023913>", line 1, in <module>
import pandas as pd
File "/Users/Nick/github/pandas/pandas/__init__.py", line 13, in <module>
"extensions first.".format(module))
ImportError: C extension: 'hashtable' not built. If you want to import pandas from the source directory, you may need to run 'python setup.py build_ext --inplace' to build the C extensions first.
Note that when I do build_ext I get the following (apparently fine) output:
注意,当我构建d_ext时,会得到以下输出(显然很好):
pandas(master)$python setup.py build_ext --inplace
running build_ext
skipping 'pandas/index.c' Cython extension (up-to-date)
skipping 'pandas/lib.c' Cython extension (up-to-date)
skipping 'pandas/parser.c' Cython extension (up-to-date)
skipping 'pandas/src/period.c' Cython extension (up-to-date)
skipping 'pandas/hashtable.c' Cython extension (up-to-date)
skipping 'pandas/algos.c' Cython extension (up-to-date)
skipping 'pandas/tslib.c' Cython extension (up-to-date)
skipping 'pandas/src/sparse.c' Cython extension (up-to-date)
skipping 'pandas/src/testing.c' Cython extension (up-to-date)
skipping 'pandas/msgpack.cpp' Cython extension (up-to-date)
Further, I can get pandas installed if I run conda install pandas
, but would really like a development environment for code development.
此外,如果我运行conda安装熊猫,我可以安装熊猫,但是它真的很喜欢代码开发的开发环境。
Similar to this, which looked unsolved and this
类似于这个,看起来还没有解决
2 个解决方案
#1
8
The answer, due to @chrisb in comments, was to run python setup.py build_ext --inplace --force
.
由于@chrisb的注释,答案是运行python设置。py build_ext——原地力量。
#2
1
I solved it reinstalling pandas with this command:
我解决了用这个命令重新安装熊猫:
conda install pandas
Everything was working fine, but I installed something using pip and started having problems. This solved it.
一切运行正常,但是我使用pip安装了一些东西,并开始出现问题。这解决了。
#1
8
The answer, due to @chrisb in comments, was to run python setup.py build_ext --inplace --force
.
由于@chrisb的注释,答案是运行python设置。py build_ext——原地力量。
#2
1
I solved it reinstalling pandas with this command:
我解决了用这个命令重新安装熊猫:
conda install pandas
Everything was working fine, but I installed something using pip and started having problems. This solved it.
一切运行正常,但是我使用pip安装了一些东西,并开始出现问题。这解决了。