目前为止我所遵循的步骤基本上是:
安装pipenv,在所需目录中创建新环境
pipenv install jupyterlab
pipenv install pandas
但是,当打开我的第一个笔记本并运行 时import pandas
,我收到一个错误,该错误似乎来自作为numpy
的依赖项导入pandas
。
import pandas
---------------------------------------------------------------------------
RuntimeError Traceback (most recent call last)
<ipython-input-1-38d4b0363d82> in <module>
----> 1 import pandas
~/.local/share/virtualenvs/test-notebook-again-duPr9W-R/lib/python3.9/site-packages/pandas/__init__.py in <module>
9 for dependency in hard_dependencies:
10 try:
---> 11 __import__(dependency)
12 except ImportError as e:
13 missing_dependencies.append(f"{dependency}: {e}")
~/.local/share/virtualenvs/test-notebook-again-duPr9W-R/lib/python3.9/site-packages/numpy/__init__.py in <module>
284 "that provided NumPy.\n{}\n".format(
285 error_message))
--> 286 raise RuntimeError(msg)
287 del _mac_os_check
288
RuntimeError: Polyfit sanity test emitted a warning, most likely due to using a buggy Accelerate backend. If you compiled yourself, see site.cfg.example for information. Otherwise report this to the vendor that provided NumPy.
RankWarning: Polyfit may be poorly conditioned
我相信,在安装 pandas 时,Numpy 默认安装在环境中,但这个安装似乎出了问题?我不知道“Accelerate”或“Polyfit”是什么,说实话,尝试阅读它们的内容感觉就像我无法理解。这里一定有一个比作为一个完全初学者尝试理解这些事情更简单的解决方案,对吧?有人知道为什么会发生这种情况吗?
芜湖不芜
温温酱
慕工程0101907
相关分类