Problems with Anaconda, Spyder and Python 3.3 - python-3.x

I have two problems with this Anaconda distribution:
Version: 1.0.0 (node-webkit 0.10.1)
Conda Version: 3.7.4
Python Version: 2.7.9.final.0
Platform: linux-64
OS: ubuntu 14.10
1) the launcher cannot launch spyder on python 3.3 even after having create the env (IPython runs well on this env). Also launching spyder from the directory is not good from the Console. Spyder doesn't start
2) in either version 3.3 and 3.4 inside ipython and also spyder (only for the version 3.4 which runs) is not able to import pandas. Should I install in every env manually (pip install pandas)? In the default root (python 2.7) I'm able to import it

Related

How to install Spyder-terminal in Python 3.8 or 3.9 with Spyder v4.3.x or Spyder 5.0.x

Spyder-terminal does not install with Anaconda Navigator running Python v3.8 or v3.9 or v3.10.
My question is "Is there a way to install the Spyder-Terminal Plugin using Anaconda Navigator running Python 3.8 or 3.9 or 3.10, and use Spyder v5.x " ?
Is there a hack for this to run inside Spyder 5.0.x on Python 3.8, 3.9 or 3.10, WITHOUT creating a new virtual environment?
My Software Versions
Spyder-Terminal Version: spyder-terminal-0.5.0 (spyder-ide/win-64)
Python Version: 3.8 or 3.9
Anaconda v2.0.1
Operating system: Windows 10
What I tried:
I tried installing 'conda install -c spyder-ide spyder-terminal' from Anaconda Command Prompt. I did several trials with MANY errors to learn that Spyder-terminal only works with Spyder v4.2 and NOT Spyder v5.0.3.
Spyder-terminal is (nominally) supposed to work in Python 3.9. So I tried upgrading Anaconda base environment to Python 3.9. However, that BROKE the Anaconda base environment, which required uninstalling and reinstalling the entire Anaconda distribution. (What a hassle. Good thing this was on someone else's computer! 8^))
I finally got it to work in a separate conda virtual environment running Python 3.6. Just to be conservative, I used Python 3.6 instead of Python 3.7. (I later installed Spyder-Terminal in a Python 3.7-based virtual environment and it worked fine.)
The steps that finally worked were to Create a new conda environment with Python 3.6 and install spyder-terminal and spyder-notebook there.
I used the following commands...
conda create -n python36 -c conda-forge python=3.6
conda install spyder-terminal -c conda-forge spyder-ide
conda install spyder-notebook -c conda-forge spyder-ide
The correct version of Spyder (for Python 3.6) was installed along with all of its correct dependencies.
What steps will reproduce the problem?
try installing into an Anaconda distribution with Python 3.8 or Python 3.9 kernels
Wait a long time and get many errors.
Rip out a few locks of hair (preferably someone else's)
**What is the expected output?
Spyder-Terminal plugin installs and is available for use.
What do you see instead?
A bunch of errors. The exact errors were lost when I closed the installation console.
Suggestions
The Spyder-terminal plugin failed repeatedly in Anaconda "base" running v3.8.x or a new environment running v3.9.x. I used a new conda virtual environment, running Python 3.6 runtime kernel and install spyder-terminal there.
The Spyder-terminal installer should do version checks for Python and Spyder FIRST, warn the user, and stop if they are not using Python 3.6 or Python 3.7.
Clearer documentation for Spyder-Terminal plugin installation on the Github.com home page (or built into Spyder Menu "Help" will help the "HELP" system. These docs should state WHICH version(s) of Spyder and Python that Spyder-Terminal v0.5.x requires. A dependency table would also be useful.

Cannot update python version in ubuntu after installing it

I want to update python version from 3.6.1 to 3.7. What I did is installing python 3.7 and alternating the version for python3 via sudo update-alternatives --config python3. It was found that there are multiple versions (I also installed version 3.8):
There are 2 choices for the alternative python3 (providing /usr/bin/python3).
Selection Path Priority Status
------------------------------------------------------------
* 0 /usr/bin/python3.7 2 auto mode
1 /usr/bin/python3.7 2 manual mode
2 /usr/bin/python3.8 1 manual mode
(I am not sure why there isn't 3.6.1 on the list)
After alternating the version, when I type python --version, the terminal still shows version 3.6.1:
Python 3.6.1 :: Anaconda 4.4.0 (64-bit)
After several times of trying I am still not able to update my python version. It seems that it relates to Anaconda issue, but after searching the internet I still found no solution. What should I do?
I am using ubuntu 20.04.
I think using this command in your terminal would answer your question :D
which python
I am guessing you are under the environment of conda where python 3.6.1 is installed and its evident that you have already installed python 3.7 in your system environment (not anaconda env)
Try :
conda deactivate
python --version
Your system wide installation of python environment is totally different from your anaconda environment
if you want to upgrade from python 3.6.1 to python 3.7 inside anaconda use the follwing in when you are in an active conda environment for ex inside base:
conda install -c anaconda python=3.7
Its better to make a new environment in conda by :
conda create --name ENVNAME python=3.7
If you don't want to use the anaconda environment by default remove it from your bashrc.

latest python 3 not compatible in ubuntu

I installed python 3.8.4 in ubuntu 18.04 but still the
python3 --version
shows the version as 3.6.9
The python3.8.4 I installed was installed as python3.8 it did not replace the existing python3
how to do so?

upgrading python in Conda environment

I have python 2.7 installed on my Mac. I installed python 3.8.3 in an anaconda environment. However, when I type the command:
python --version
in the environment I still get python 2.7. how can I make my main python version 3.8.3 in this environment without completely getting rid of python 2.7

Changing Default Python env.(from 2.7 to 3.3) in Anaconda on Mac OS 10.8

I have the Anaconda distribution installed for Mac. I have Mac OSX 10.8 (Mountain lion). The problem I don't often use Anaconda is because the default Python which it uses is 2.7 while I work on 3.3 or atleast prefer to work on that.
I really like the Spyder IDE of Anaconda. Is there a way I can get the default environment on Anaconda changed to 3.3 instead of 2.7 so that Spyder and iPython all use 3.3 default?
I see the following help from Anaconda site:
$ conda create -n py3k python=3 anaconda
Here python=3 and anaconda are package specifications, and it is the job of the SAT solver inside conda to find a consistent set of packages which satisfies these requirements. As the root environment uses Python 2, we had to specify the major version explicitly.
After adding the binary directory of the newly created environment to the PATH environment variable, which may be done using
$ source activate py3k
My question is I have separately installed Python 3.3 and associated Scientific Python packages like Pandas, numpy, scipy, scikit-learn etc using Homebrew so that it doesn't conflict with my Mac OS default Python 2.7. So now if I run the above Conda commands in Mac Terminal will it interfere with other Python packages I have installed using Homebrew? or will it automatically install/upgrade the python and other packages in the Anaconda library without interfering with either the Homebrew installed Python or Mac OS default Python?
Please advise.
No, the Homebrew and Anaconda Pythons will stay completely independent of one another. Just make sure you don't have PYTHONPATH set, which causes this to not be true.
Also, you should know that Spyder is not available for Python 3 in Anaconda yet, because PySide has not yet been built for Python 3.
I had installed Anaconda with python 2.7, but even after adding python3:
conda create --name Py3 python=3
spyder continued to call python2.7
creating an environment with BOTH spyder and python=3 worked for me:
conda create --name SpyPy3 python=3 spyder

Resources