简体   繁体   English

在anaconda 3.10.0上导入theano

[英]importing theano on anaconda 3.10.0

I'm trying to import theano and I'm using the anaconda version 3.10.0, Can anyone give me directions to how to proceed? 我正在尝试导入theano,并且正在使用anaconda版本3.10.0,有人可以给我指导如何进行吗?

Thanks in advance 提前致谢

Problem occurred during compilation with the command line below: g++ -shared -g -D NPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -m64 -DMS_WIN64 -IC:\\Users\\Supreeth\\Anaconda\\lib\\site-packages\\numpy\\core\\include -IC:\\Users\\Supreeth\\Anaconda\\include -o C:\\Users\\Supreeth\\AppData\\Local\\Theano\\compiledir_Windows-8-6.2.9200-Intel64_Family_6_Model_60_Stepping_3_GenuineIntel-2.7.9-64\\lazylinker_ext\\lazylinker_ext.pyd C:\\Users\\Supreeth\\AppData\\Local\\Theano\\compiledir_Windows-8-6.2.9200-Intel64_Family_6_Model_60_Stepping_3_GenuineIntel-2.7.9-64\\lazylinker_ext\\mod.cpp -LC:\\Users\\Supreeth\\Anaconda\\libs -LC:\\Users\\Supreeth\\Anaconda -lpython27 使用以下命令行在编译过程中发生了问题:g ++ -shared -g -D NPY_NO_DEPRECATED_API = NPY_1_7_API_VERSION -m64 -DMS_WIN64 -IC:\\ Users \\ Supreeth \\ Anaconda \\ lib \\ site-packages \\ numpy \\ core \\ include -IC:\\ Users \\ Supreeth \\ Anaconda \\ include -o C:\\ Users \\ Supreeth \\ AppData \\ Local \\ Theano \\ compiledir_Windows-8-6.2.9200-Intel64_Family_6_Model_60_Stepping_3_GenuineIntel-2.7.9-64 \\ lazylinker_ext \\ lazylinker_ext.pyd C:\\ Users \\ Supreeth \\ App \\ Local \\ Theano \\ compiledir_Windows-8-6.2.9200-Intel64_Family_6_Model_60_Stepping_3_GenuineIntel-2.7.9-64 \\ lazylinker_ext \\ mod.cpp -LC:\\ Users \\ Supreeth \\ Anaconda \\ libs -LC:\\ Users \\ Supreeth \\ Anaconda -lpython27

I find the solution from the Theano Installation Document 我可以从Theano安装文档中找到解决方案

Specifically for Anaconda users just use the command 专门针对Anaconda用户,只需使用以下命令

$ conda install mingw libpython

in the Anaconda Command Prompt 在Anaconda命令提示符中

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM