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

為什么 Conda 激活環境后無法調用正確的 Python 版

Why Conda cannot call correct Python version after activating the environment?(為什么 Conda 激活環境后無法調用正確的 Python 版本?)
本文介紹了為什么 Conda 激活環境后無法調用正確的 Python 版本?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我在Linux下有如下conda環境:

I have the following conda environment under Linux:

$ conda info -e
# conda environments:
#
py33                     /u21/coyotito/.anaconda/envs/py33
root                  *  /u21/coyotito/.anaconda

py33 是用這個命令創建的:

And py33 is created with this command:

$ conda create -n py33 python=3.3 anaconda

問題是當我激活 py33 時它仍然無法調用 Python 3.3 版本.

The problem is when I activate py33 it still cannot call Python version 3.3.

[coyotito@pearl ~]$ source activate py33
(coyotito)[coyotito@pearl ~]$ python --version
Python 2.7.10 :: Anaconda 2.1.0 (64-bit)
(coyotito)[coyotito@pearl ~]$ conda info -e
# conda environments:
#
py33                     /u21/coyotito/.anaconda/envs/py33
root                  *  /u21/coyotito/.anaconda

即它仍然調用舊的python.還要注意括號下的提示不是 (py33).

Namely it still calling old python. Notice also that the prompt under bracket is not (py33).

(coyotito)[coyotito@pearl ~]$ which python
~/.anaconda/bin/python

在新環境中代替python:

Instead of python in new environment:

~/.anaconda/envs/py33/bin/python3.3

我該如何解決這個問題?

How can I resolve this issue?

更新

我在 ~/.bash_profile 中的 PATH 環境如下所示:

My PATH environment in ~/.bash_profile looks like this:

export PATH=$HOME/.anaconda/bin:$PATH

推薦答案

我遇到了完全相同的問題.不知道我做了什么來陷入這種混亂,但我用一個簡單的方法解決了它:

I had the exact same problem. Not sure what I did to get into that mess, but I solved it with a simple:

conda deactivate
conda activate foo_env

(如果激活了多個環境,可能需要多次運行conda deactivate.)

(If you have activated multiple environments, you may need to run conda deactivate multiple times.)

這篇關于為什么 Conda 激活環境后無法調用正確的 Python 版本?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

相關文檔推薦

Troubles while parsing with python very large xml file(使用 python 解析非常大的 xml 文件時出現問題)
Find all nodes by attribute in XML using Python 2(使用 Python 2 在 XML 中按屬性查找所有節點)
Python - How to parse xml response and store a elements value in a variable?(Python - 如何解析 xml 響應并將元素值存儲在變量中?)
How to get XML tag value in Python(如何在 Python 中獲取 XML 標記值)
How to correctly parse utf-8 xml with ElementTree?(如何使用 ElementTree 正確解析 utf-8 xml?)
Parse XML from URL into python object(將 XML 從 URL 解析為 python 對象)
主站蜘蛛池模板: 91av视频在线观看 | av在线成人 | 日本免费不卡视频 | 午夜黄视频 | 欧美在线一区二区 | 五月婷婷色综合 | 欧美日韩国产一区二区 | 精品伊人久久 | 日韩精品一区二区视频 | 久久福利网 | 天堂91 | 中国一级黄色录像 | 国产三级做爰高清在线 | 日韩精品毛片 | 午夜精品久久久久久久久久久久 | 亚洲成人免费 | 日韩网站免费观看 | 黄色一级视频网站 | 黄色在线免费网站 | 日韩国产在线播放 | 天天射天天干天天操 | 亚洲欧美日韩精品 | 黄色一级片免费 | 天天摸天天干 | 99视频精品 | 欧美性猛交99久久久久99按摩 | 久草福利在线观看 | 久久久久久久99 | 亚洲另类视频 | 糖心vlog精品一区二区 | 在线成人免费视频 | 国产一区二区在线观看视频 | 中文字幕在线不卡 | 一级黄色片免费 | 美女天天干 | 成人午夜精品 | 99视频在线精品免费观看2 | www.黄色网| 欧美一区二区在线 | 91亚洲国产成人久久精品网站 | 免费黄色大片 |