Spyder says: Don't mix pip and conda

Spyder IDE · 91K views · 2020 · 8:24

Open on YouTube

Python, Ruby & scripting languagesTesting, debugging & developer toolsSoftware practice, open source & careerstutorial

Why Stack Overflow recommends it

Stack Overflow users, mostly the Spyder maintainer, link it whenever Spyder won't launch or imports fail after packages were installed with pip into an Anaconda setup.

Recommended by 4 people across 10 different months, 2020 to 2024.

What it is

An 8-minute tutorial from the Spyder IDE team on repairing a broken Spyder/Anaconda setup caused by mixing pip, Conda-Forge and Anaconda packages. Part 1 walks through cleaning up and reinstalling Anaconda, and Part 2 shows how to install packages properly and point Spyder at a conda environment.

What people said

Recommends Carlos Cordoba · 2020-10 · Stack Overflow · on “ModuleNotFoundError in Spyder”

(*Spyder maintainer here*) Please see the second part of our video [this video] to understand how to solve this problem.

Recommends Carlos Cordoba · 2020-10 · Stack Overflow · on “Anaconda prompt is giving error [Errno 9] Bad file descriptor”

This looks like an installation issue with Anaconda. Please see the second part of this video [this video] to learn how to remove and reinstall Anaconda again.

Recommends Carlos Cordoba · 2020-12 · Stack Overflow · on “How to install Selenium package in Spyder IDE”

( Spyder maintainer here ) First, you need to download Miniconda [LINK] , create an environment [LINK] and install Selenium on it with conda install selenium . Then you need to connect Spyder to your environment so you can run code that depends on Selenium on it. The entire process is better described in the second part of our video [this video] about managing environments.

Recommends Carlos Cordoba · 2020-12 · Stack Overflow · on “Spyder Application fails to Launch [ No module named 'PySide' ]”

(*Spyder maintainer here*) This is usually caused by install PyQt5 with pip. Please see our video [this video] to understand how to fix that.

Recommends Carlos Cordoba · 2020-12 · Stack Overflow · on “Anaconda-Spyder is not working in Windows 10”

(*Spyder maintainer here*) Please see our video [this video] to understand how to bring Spyder back to life again.

Recommends Carlos Cordoba · 2020-12 · Stack Overflow · on “Getting DLL Load error while importing CV2 in Spyder (installed directly without Anaconda) - python 3.7”

(*Spyder maintainer here*) If you want to use complex libraries like OpenCV, you should definitely try Anaconda [LINK] instead of using a regular Python installation. Please see our video [this video] on how to uninstall your current Python and install Anaconda instead.

Recommends Carlos Cordoba · 2020-12 · Stack Overflow · on “Can't install keras or tensorflow in Windows 10 version - Anaconda”

(*Spyder maintainer here*) Please see the second part of our video [this video] to understand how to connect Spyder to a conda environment.

Recommends Carlos Cordoba · 2020-12 · Stack Overflow · on “TKINTER doesn't work with Python&Spyder 3.7.9 August 2020”

In the meantime, please download Miniconda [LINK] , create a conda environment with it and connect it to Spyder. That's explained in the second part of this video [this video] of ours.

Recommends Carlos Cordoba · 2020-12 · Stack Overflow · on “Error while importing pdftotext module in spyder”

(*Spyder maintainer here*) Please see the second part of our video [this video] to understand how to properly install packages in Miniconda/Anaconda and make Spyder recognize them.

Recommends Carlos Cordoba · 2020-12 · Stack Overflow · on “Conda Create Environment Error: InternalArchiveError”

(*Spyder maintainer here*) Please see the second part of our video [this video] to understand how to work with conda environments and connect them to Spyder.