程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
您现在的位置: 程式師世界 >> 編程語言 >  >> 更多編程語言 >> Python

In the TensorFlow notes of Peking University teacher Cao Jian, the installation of sklearn and pandas in pycharm failed, Could not find conda environment: tensorflow

編輯:Python

There are sklearn and pandas packages in the computer

If you enter pip list in the cmd window, or enter conda list in the terminal window of vscode, or enter conda list.You will find, hey, doesn't this have sklearn and pandas?Why is the error No module named 'sklearn', No module named 'pandas' reported when running the code in pycharm and vscode, in fact, this is saying that these twoA package that does exist on your computer, but not in the environment where TF2.1 was created.

Enter TF2.1 environment

Click on the computer "Start"->Anaconda3->Anaconda Navigator->Environments->TF2.1 right triangle button->open Terminal, at this time enter the created TF2.1 environment terminal.
Enter conda list and you will find that there are no sklearn and pandas packages in this environment.

Next, fix this

Enter activate TF2.1 to activate this environment.
Enter the download link of Douban source python -m pip install pandas -i https://pypi.douban.com/simple, you can download pandas
You can also download the sklearn package.
Note that this library will indeed be installed by entering pip install sklearn directly in the terminal window of vscode and the Terminal window of pycharm, but it is not installed in the TF2.1 environment.If you don't believe me, you can go to "Start"->Anaconda3->Anaconda Navigator->Environments->Triangle button on the right side of TF2.1->open Terminal This real TF2.1 terminal input condalist, you will find that the installed library cannot be found.

Thanks

I came across this article while looking for a solution to the problem, and I posted the original link so you can take a look.
Could not find conda environment: tensorflow | anaconda activation environment


  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式師世界 All Rights Reserved