Reputation: 143
I am currently using Anaconda2 . python -V gives :- Python 2.7.11 :: Anaconda 4.0.0
Now I want to use Python 3.6 and i tried to update my python version using the following command in anaconda:-
conda install python=3.6 but this did not worked , because I work in a restricted environment MNC .
Two Options are available to me and I want to know which one should I follow
1> I can install Anaconda3 . But if do that , do i need to uninstall already existing version of Anaconda I am using i.e Anaconda2 ? If not please tell me how will I choose which version of python to use in Spyder.
2> I can install Python3.6 . If I take this option , I have no idea of what to do afterwards.
P.S.:- I am not very good at installation so please guide me in the easiest way possible.
Also if there is some other way , please share that too
Upvotes: 2
Views: 10044
Reputation: 56
If you are using Anaconda and python, you just update it with:-
Open Anaconda Prompt type:-
conda update conda
conda update python
Check your python version python --version
and conda version conda --version
Upvotes: 0
Reputation: 146
are you able to create a new environment with the command:
conda create -n py36 python=3.6
? if so, anaconda will create a new subfolder for this environment in the anaconda/envs folder named py36. in spyder you can go to tools->preferences->python interpreter and choose the python interpreter (python.exe if on windows) in that folder. to use pip and all in the commandline for that environment write:
if on linux/mac:
source activate py36
if on windows:
activate py36
then continue to do you installations and all.
Upvotes: 3
Reputation: 20590
Take a look at environments, which enable you to have multiple python versions and manage them seperately. The documentation can be found here
In short, just do:
conda create -n myenv python=3.6
to create an environment with python 3.6. You can enter it doing
source myenv
and then pip install
any desired packages.
Upvotes: 1