簡體   English   中英

沒有名為 numpy 的模塊,但已滿足要求 (Anaconda)

[英]No module named numpy but requirements are already satisfied (Anaconda)

我已經在 Anaconda 上的虛擬環境中從終端使用 pip 命令安裝了不同的軟件包。 如果我嘗試從終端運行 file.py,則會收到錯誤消息“沒有名為“numpy”的模塊,而如果我使用 spyder 運行 file.py(關聯到同一環境),一切正常。

我該如何解決這個問題?

pip --verions 是:pip 20.0.2 來自 C:\Users\giulia\libAnaconda3\envs\reasoningpython 包

python --版本為:Python 3.6.10:: Anaconda, Inc.

If you are using Visual Code for edit your python programs, then choose the correct worrkspace clicking on the down left corner, after select your worspace environment and select the anaconda worspace (In my case is named conda) Python Workspaces in Visual Code

這是因為新的 windows 更新,我們需要等到一月份才能解決這個問題。

閱讀此文檔,它可能會有所幫助。

https://developercommunity.visualstudio.com/content/problem/1207405/fmod-after-an-update-to-windows-2004-is-causing-a.html

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM