久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

用 Anaconda 安裝了一個包,無法在 Python 中導入

Installed a package with Anaconda, can#39;t import in Python(用 Anaconda 安裝了一個包,無法在 Python 中導入)
本文介紹了用 Anaconda 安裝了一個包,無法在 Python 中導入的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

原諒我,但我是 python 新手.我已經使用安裝了一個包(theano)conda install theano,當我輸入conda list,包就存在了

Forgive me but I'm new to python. I've installed a package (theano) using conda install theano, and when I type conda list, the package exists

但是,當我通過運行 python 進入 python 解釋器,并嘗試使用 import theano 導入它時,我得到一個錯誤:no module named theano",當我列出所有 python 模塊時,theano 不存在.

However, when I enter the python interpreter by running python, and try to import it with import theano, I get an error: "no module named theano", and when I list all python modules, theano doesn't exist.

我錯過了什么?

推薦答案

可能是因為您的計算機中安裝了多個 python 環境.當您執行 which python 時,您可能會在計算機中安裝本機 python.即 /usr/bin/python

Probably due to the fact you have multiply python envs installed in your computer. when you do which python you will probably get the native python installed in your computer. that is /usr/bin/python

您想使用安裝 Anaconda 時附帶的 Python.只需將 Anaconda 路徑添加到 $PATH 的開頭即可.(為了做到這一點,您可能需要編輯您的 ~/.bashrc 文件(或您的 shell 的等效文件),然后編輯 source ~/.bashrc.

You want to use the Python that came when you installed Anaconda. Just add Anaconda path to the beginning of your $PATH. (In order to do this you probably need to edit your ~/.bashrc file (or the equivalent file for your shell) then source ~/.bashrc.

下次你會運行 pythonimport theano 你會成功.

Next time you will go to will run python and import theano you'll succeed.

這篇關于用 Anaconda 安裝了一個包,無法在 Python 中導入的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

How to install Selenium in a conda environment?(如何在 conda 環境中安裝 Selenium?)
get the CUDA and CUDNN version on windows with Anaconda installe(使用 Anaconda installe 在 Windows 上獲取 CUDA 和 CUDNN 版本)
How can I download Anaconda for python 3.6(如何下載適用于 python 3.6 的 Anaconda)
Using two different Python Distributions(使用兩個不同的 Python 發行版)
How can I install Anaconda aside an existing pyenv installation on OSX?(除了 OSX 上現有的 pyenv 安裝之外,如何安裝 Anaconda?)
Permanently set Python path for Anaconda within Cygwin(在 Cygwin 中為 Anaconda 永久設置 Python 路徑)
主站蜘蛛池模板: 人人看人人射 | 伊人网站 | 在线观看国产精品视频 | 国产免费xxx | 亚洲最大av| www.99精品| 国产成人精品一区二 | 色就干| 日韩av成人在线 | 男人天堂久久 | 久夜精品 | 天天色天天色 | 久久毛片网站 | 久久久国产精品 | 久久久久久久久蜜桃 | 日韩欧美第一页 | 欧美一区二区三区的 | 性高湖久久久久久久久 | 久久久久久亚洲欧洲 | 91看片在线 | 日韩在线免费视频 | 久久这里只有精品首页 | 亚洲精品一区二区三区中文字幕 | 亚洲一区中文字幕在线观看 | 久久亚洲一区二区三区四区 | 久久这里只有精品首页 | 亚洲一区二区在线 | 亚洲一区在线播放 | 91视频导航| 日韩毛片在线免费观看 | www日本在线观看 | 国产精品久久久久久久久久免费 | 亚洲成人一区二区 | 国产精成人 | 黄色播放 | 精品网| 国产精品久久久久久吹潮 | 日韩在线一区视频 | 精品一区二区三区视频在线观看 | 国产免费一区二区 | 国产久视频 |