i hope this question somehow fits in here.
Short: Can't install Spyder 4.2.1 using anaconda. However, I can install stand alone Spyder 4.2.1 but then i don't know how to install packages as the terminal/pip won't find the python from the stand alone Spyder.
long: Spyder 4.2.1 seems to be the first version that is supported on BIGsur. However, when I installed anaconda, it came with Spyder 4.1.5. I tried conda -update Spyder in the terminal and I got Spyder 4.2.0. This version is still super laggy and has high typing latency in the editor.
Trying the same again shows latest version already installed. Same for trying: conda -update anaconda.
Spyder4.2.1 was only released a few days ago. Is it possible it takes a while until anaconda supports it? If so, how long would it take (days, weeks or months?). My google searches had no results regarding this.
Since 4.2.0 the Spyder developers recommend the stand alone installers, which I understand as using Spyder without anaconda. I installed Spyder 4.2.1 and the typing in the editor was indeed super smooth. But now i couldn't properly install packages like pandas.
I also noticed that when i run spyder from anaconda the first line in the console indicates python 3.8 but when i run the stand alone spyder4.2.1 it says python 3.9.
The terminal only "recognizes" the 3.8 version. At least I can run Python3.8 in the Terminal but trying to run Python3.9 gives zsh: command not found error. (when it comes to install packages, developers recommend conda again. But this only updates the built in Spyder packages not the stand alone Spyder...
I realized the Python3.9 version is located in the spyder.app-file. I am super new to macOS and was quiet surprised when i found out, that what i thought was a launching icon was also a directory. Anyway using pip -install seems to only install packages for the python3.8 version.
With --target I tried to install the package into the spyder.app directory. Now I'm afraid it installs the wrong version of pandas. In the terminal it said it installed pandas 0.24 which is quiet outdated. I have also Python 2.7 installed and I feel like the pandas version i got matches python2.7.
So i tried to install the python3.9 version (using: python3.9 -m pip install), but since the terminal doesn't recognize this version it says command does not exist.
The message from Spyder after "import pandas" is around 100 lines, i copied the red highlighted ones:
ModuleNotFoundError: No module named 'pandas._libs.tslibs.base'
KeyError: 'pandas._libs.tslibs.conversion'
KeyError: 'pandas._libs.missing'
KeyError: 'pandas._libs.hashtable'
KeyError: 'pandas._libs.interval'
Has anyone installed Spyder 4.2.1 using anaconda or knows how to install packages for the stand alone version?
My current solution is to change spyders4.2.1 python environment to the python I installed seperately. Now I can install packages with pip install.
Related
I have tried many times to install Pipetorch in Spyder 5.3 with Python 3.8.10, but it failed.
I have tried as well conda as pip commands, but it does not work. If I use %pip I get this:
Note: you may need to restart the kernel to use updated packages. C:\Users\szewa\AppData\Local\Programs\Spyder\Python\python.exe: No module named pip
If I use conda I get this:
`ValueError: The python kernel does not appear to be a conda environment. Please use ``%pip install instead.`
Can someone help me? I can find nothing on internet that works...
You seem to be confused about the differences between pip and conda. Anyhow, your Python installation is messed up now and only a restart will help now.
The easiest way to use Python together with the Spyder IDE is to install Anaconda and learn some conda basics: Getting started with conda.
If you really want to install Spyder with standard Python, follow the recipe from Spyder installation without Anaconda, but it seems to be tricky.
I had the same issue with kernel hanging on valid scripts:
spyder kernel hangs...
Spyder 5.2 isn't available yet in Anaconda, but I installed it via the link provided in the answer above. When I attempt to get it to use my current conda environment, I get the following error:
Your Python environment or installation doesn't have the spyder‑kernels module or the right version of it installed (>= 2.2.0 and < 2.3.0). Without this module is not possible for Spyder to create a console for you.
You can install it by running in a system terminal: conda install spyder‑kernels=2.2
I can't update conda from sypder-kernel=2.1.3 to 2.2.0 due to numerous conflicts.
I'm wondering if anyone has any ideas on how I might get Spyder 5.2 working with Anaconda, or do I simply have to wait for it to be released by Anaconda? I'm not that savvy in this type of thing.
I had the same problem with spyder 5.2.1, I opened cmd and typed:
pip install spyder-kernels==2.2.0
Then it downloaded the right kernel and after opening spyder I didn't get any error related to its kernel version.
I'm quite new to Ubuntu. On my machine, running Ubuntu 20.04 with Python 3.8, I'm trying to run a program which does not support Python 3.8, but it requires Python 3.7 (FYI, it is Carla Simulator).
I need pygame, but when installing it through pip (python3.7 -m pip install pygame) it raises an error:
ModuleNotFoundError: No module named 'distutils.util'
Now, I have distutils correctly installed and updated at version 3.8.2-1ubuntu1.
Is there any way for me to install a distutils version compatible with Python 3.7 without affecting Python 3.8 and related modules? Or do you have hany suggestion to get pygame for Python 3.7 and running Carla somehow? Could a virtual environment help?
My question is really similar to this one How to install python-distutils but I don't actually require distutils, I just need the program to work...
Thank you
----- EDIT -----
I tried creating a virtual environment using venv, but I got an error due tue unavailability of ensurepip. Googling it, I found it might be related to the fact that my Python 3.7 version might have been installed through Anaconda (I actually can't remember). Running apt-cache rdepends python3.7 I get:
python3.7
Reverse Depends:
python3.7-minimal
Is it safe to completely uninstall current Python3.7 and reinstall it to hopefully get ensurepip? Any suggested code to safely do it?
The easiest solution for you would be to run your program in a virtual environment where you would specify the default python version to be 3.7 I think (see Use different Python version with virtualenv for an example). You can then install all your dependencies inside this environment and not have to deal with any conflicts between the two versions on Python.
Using pyenv you could specify the python version you want to use.
for example:
create a new folder and hit:
pyenv local 3.7.2
then create your virtual env by using pipenv:
pipenv install
then start your journey to building your game.
hope it help.
I recently updated my version of Spyder to 4.0.1 with Anaconda on macOS Catalina. I use Zsh and initially the command
conda install spyder=4.0.1
did not work, so I followed this guide to get Zsh to recognise the conda command, which essentially involved downloading the anaconda command line installer and running
bash ~/Downloads/Anaconda3-2019.10-MacOSX-x86_64.sh
export PATH="/Users/myname/anaconda3/bin:$PATH"
then running
conda install spyder=4.0.1
to update Spyder. This seemed to work fine, the new version is stored in /users/myname/anaconda3/envs/spyder-4.0.1 and upon opening Anaconda-Navigator I was able to specify Spyder 4.0.1, although I had to change the "Applications on" option to "spyder" rather than "base (root)". I could then open Spyder 4.0.1 on the same Python 3.7 projects I had on Spyder 3.3.6, but they could no longer run due to the error
ModuleNotFoundError: No module named 'numpy'
This was not just for numpy, it also couldn't find scipy or matplotlib, although it could find time and sys. When I run
conda list
All of the modules are there, and Spyder 3.3.6 still runs fine, but for some reason the new version can't use them.
EDIT: Have resolved the issue. All the modules were had to be manually added to Spyder 4.0.1 in the Anaconda-Navigator window. On the left go to Environments, select spyder-4.0.1 and a list of installed modules appears. In the drop down menu select "Not installed" and select the modules you wish to have installed, then click apply. You can now open Spyder 4.0.1 and import the modules as required.
You should update to python 3.7 and then update Spyder.
conda install python=3.7 anaconda=custom
I want to install jupyter on Win 10. I have been using python on linux, but this is my first time on Win 10.
when I execute python -m pip install jupyter on administrator, I got errors like this:
The package setup script has attempted to modify files on your system
that are not within the EasyInstall build area, and has been aborted.
This package cannot be safely installed by EasyInstall, and may not
support alternate installation locations even if you run its setup
script by hand. Please inform the package's author and the EasyInstall
maintainers to find out if a fix or workaround is available.
any idea?
I have been able to get around this error by installing Anaconda, uninstalling Python 3.8.0 and installing Python 3.7.5 instead.
The Jupyter installation then ran successfully when I executed pip install jupyter with Git Bash in my C:\ drive using pip 19.2.3 (the default with Python 3.7.5).
For those who encounter this and need to use Python 3.8+, make sure to update you setuptools to version 42.0.0 (or later).
Install a version earlier than python 3.8 and the installation will work. Use CMD.
I had the same problem, I am using 64-bit windows 10 but downloaded the 32-bit python installer because it is the default that appears on the 'downloads' page on the python.org site. Uninstalled python 3.8.1, downloaded the 64-bit installer instead, and then ran 'pip install jupyterlab' using the pip version 19.2.3 that got installed with the 64-bit python instead of upgrading to pip version 19.3.1. So if you are running a 64-bit version of windows, make sure you download the 64-bit python installer!