installing packages in Anaconda stopped - python-3.x

i have been using Anaconda for installing python packages and so far it worked just fine.
Since today it doesn't ... I am able to select the package i want, in my case "python-docx", run apply, and anaconda finds the package. I am also able to start the installtion and it does something (at least the processing bar keeps running), but after a view minutes it stopps. But nothing has happened. The package is still marked as not installed and wound't work in the code.
I tried it with different packages, but it is always the same.
I also tried to install the package using the conda comment in the cmd-box but here i end up with the error "conda comment hast not been found".
Does anyone know what i can do ?

Related

VSCode Jupiter notebook cannot resolve import for package installed in editable (-e) mode

I am using a Jupyter notebook running in VSCode to test some ideas for a work project and I am using a package that is in a private GitHub repo. I encountered certain conflicts with versions of jax and numpy and after some fiddling trying to fix the issues, I simply re-installed said package to make sure I was using the correct versions of all required packages. Everything seemed fine until I re-opened the notebook and found a bunch of Import "<package name>" could not be resolved Pylance.
The imports still work and the code runs, however, PyLance appears not to be "seeing" said package.
I am using a conda Python 3.8 environment and to re-install the package I ran
pip install -e . --force-reinstall
I have also tried un-installing and re-installing the package, as well as creating a brand new conda env, and then installing the package there. Neither of these options worked however and I was stuck with the same issue.
Upon inspection of what is in sys.path I saw a strange entry
'__editable__.<package_name>-<package_version>.finder.__path_hook__'
I know that a colleague (who does not have this issue) does not see anything similar and instead has the correct local path to the package.
I should also note that I have the Python extension enabled, which includes the Jupyter and Pylance extensions as well. I have tried re-installing those extensions as well and that did not solve the issue either.
Edit.
I will add that I only get this PyLance error in notebooks. If I open a regular Python file then all PyLance features appear to be working as expected.

Python, Anaconda & PyCharm multiple versions of Python3

I just installed Anaconda3-2019-10 on my MacBook.
I tried to make sure that my previous Python 3 version was totally uninstalled / removed from my system. Typing python3to the terminal didn´t work anymore.
After installing Anaconda and PyCharm (pycharm-community-anaconda-2019.3.3) I started a new Project to test everything. For that I selected to create a new Conda environment:
After I created the process I checked the Preferences and the "Project Interpreter". This is what I found:
I expected to find two interpreters 1.) my 3.7 Python version and 2.) the Conda environment just created.
Does finding 3 versions mean that I didn´t correctly deinstall Python3 before installing anaconda or is there anything that I don´t understand here?
Do I need both versions?
If not is there a safe way to remove one of them?
For removing Python3 from my system I did almost everythin suggested in numerous posts in Stackoverflow.
Upon creating a venv(virtual environment) you no longer need to worry about the existing interpreter. https://docs.python.org/3/tutorial/venv.html this might be of help.

Spyder not launching in python 3.7

Several days ago, Spyder stopped running. I tried almost everything on forums. I desinstalled it and downloaded last version of anaconda package, but to no avail.
This is what the anaconda prompt shows me
As I said, I tried uploading qt, PySide, and even tried to locate .spyder2 to erase it as is said in Anaconda webpage.
I really don't know what else to try
EDIT: Don't know if you need versions of anything, because as I said, it is the standard last version package available in Anaconda.
EDIT2: I'm using Windows 10

Anaconda only comes with anaconda prompt

I used to have the whole anaconda package on my Windows 10 computer (an HP Envy) until recently, Windows 10 updated and the update caused problems so I restored the previous version of windows (keep in mind, I installed Anaconda about 3 updates ago so restoring should not have caused a problem). A few days later, I tried to use Jupyter but "jupyter notebook" no longer launched Jupyter when typed into PowerShell. I tried uninstalling and reinstalling with all different preferences (i.e. me only, all users, PATH, no PATH, etc.) but it still installs as only the anaconda prompt. When I type conda --version in PowerShell, my error says "The term conda is not recognized" ...
Does anyone have any suggestions? I really need to use Jupyter. Thanks!

Anaconda navigotor and its applications wont work

Anaconda navigator along and its enclosed applications stopped working when qtpy4 package was inserted manually, clicking their .exe icons wont raise any errors as nothing happens.
But upon manual launch of
C:\ProgramData\Anaconda2\Scripts\anaconda-navigator.exe
or
C:\ProgramData\Anaconda2\Scripts\spyder.exe
Raised the attached error
Qtpy error
*It is worth mentioning jupyter-notebook.exe launched from
C:\ProgramData\Anaconda2\Scripts\jupyter-notebook.exe
Worked fine
A simple reinstall sufficed, turns out the problem was in pipeline for pyqt as it broke conflicting qt5 binding.
P.s Happened when I accidentally install qt4 package over already
existing qt5 package in anaconda.

Resources