我正在尝试使用pip3与python3.9一起安装模块..。我阅读了windows的回复,这些答复建议安装VisualStudio,因为我们需要一个好的C++编译器。
我使用macOS
为了更好地理解,我正在添加输入和错误消息。
输入:
rohansaswade@Rohans-MBP ~ % pip3 install numpy输出:
Collecting numpy
Using cached numpy-1.19.2.zip (7.3 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... error
ERROR: Command errored out with exit status 1:我没有提到完整的错误输出,因为它似乎相当无关紧要,但如果您需要它来帮助我,请放弃评论。
我使用macOS Catalina 10.15.7和python3.9
发布于 2021-01-04 14:59:17
我也有过同样的问题。在我的例子中,下面的步骤虽然很费时,但还是有帮助的。
#制备
pip install cython
git clone https://github.com/numpy/numpy.git
#步骤
cd numpy
python setup.py build
python setup.py install
我希望它也适用于你。
https://stackoverflow.com/questions/64291491
复制相似问题