(Alternative solution) Issues with Anaconda install - Failed to create Anaconda menus - python

I recently uninstalled Anaconda 3 as it was giving me issues but after installing it and trying to use the latest Anaconda3-2019.10 for Windows I got the "Failed to create Anaconda menus" error each time i installed. I check PATHs, checked and cleaned registry and still not hope.

SOLUTION: Some how re-installing the exact same old version of Anaconda3-5.2.0-Windows-x86_64 worked!
I cannot explain it.

Related

Error occurred when installing package ‘Cartopy’

I have installed all libraries we need on this project except ‘’ Cartopy library ‘’ in Pycharm. After some research I thought it might be due to the python version so I tried dowloading the Cartopy Library in about 5 different Python versions and again the Cartopy Library is not installed.
After some more research, I thought of changing the version of Pycharm. I dowload version of 2020 and 2021 of Pycharm. Unfortunately i still got the same error :
“Error occurred when installing package ‘Cartopy”.
enter image description here
I have encountered a similar issue with another package and the problem wasn't in the IDE but the OS which in my case was mac. I had to install an ubuntu in parallel and migrate the whole project there and it ran perfectly.
I suggest you use conda instead of pip and if the issue didn't go away check the compatibility with your OS and if this is the issue you can simply install a virtual machine.

Can't find Brew installed packages on Mac M1 in Pycharm

I'm having trouble installing packages and using them in Pycharm. I've followed various threads (I'm new to Macs and seem to have tried everything) now I'm stuck.
In this case, I want to use the package xgboost.
I have brew installed, after launching a terminal using Rosetta:
%brew install xgboost
Warning: xgboost 1.3.3 is already installed and up-to-date.
It appears installed OK here:
/opt/homebrew/Cellar/xgboost
I also have Python installed here:
/opt/homebrew/Cellar/python#3.9
But no matter how I configure an Interpreter in Pycharm, I can't seem to get the package recognised.
Where have I gone wrong?
I am very unsure exactly how, but I've got this working.
Following: https://abbasegbeyemi.me/blog/homebrew-python-apple-m1
I changed the order of elements in my path:
export PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/homebrew/bin
then a new interpreter in Pycharm using:
usr/local/Cellar/Python#3.9/3.9.2_2/bin/python3.9
Now I can install packages just using pip in pycharm and it works.
This has been 6 hours of pain - warning to anyone who isn't well versed in macs, setting up an M1 for python dev was a complete nightmare for me.
Docs: https://xgboost.readthedocs.io/en/latest/build.html
Pre-built binary wheel for Python
If you are planning to use Python, consider installing XGBoost from a pre-built binary wheel, available from Python Package Index (PyPI). You may download and install it by running
# Ensure that you are downloading one of the following:
# * xgboost-{version}-py2.py3-none-manylinux1_x86_64.whl
# * xgboost-{version}-py2.py3-none-win_amd64.whl
pip3 install xgboost

Anaconda 3 : Failed to create menus

I am getting error "Failed to create menus" while installing Anaconda3 on windows 7 64-bit.
Error details is shown below:
Creating Anaconda3 menus...
Error loading Python DLL 'C:\Users\dell\AppData\Local\Temp_MEI29922\python36.dll'.
LoadLibrary: The specified procedure could not be found.
I had the same issue and none of the usual troubleshooting (admin rights, path, etc.) worked. Apparently it is related to the latest version distributions (2019.7, 2019.10 and possibly others).
Installing version 2019.3 from Anaconda Installer Archive (https://repo.anaconda.com/archive/) worked for me. Hope this helps.

Reticulate can't install python packages

I'm trying to run the Seurat pipeline in RStudio (Windows 10 , which requires having the python library 'umap-learn' installed (Seurat walkthrough: https://satijalab.org/seurat/v3.0/pbmc3k_tutorial.html).
To install said library, I'm using the reticulate library in R in the following manner:
library(reticulate)
py_install(packages = 'umap-learn')
I'm getting the following error:
Error in conda_python(envname = envname, conda = conda) :
conda environment r-reticulate not found
I've tried just about everything I can think of:
Providing py_install with a path to python directly
Uninstall / Reinstall of RStudio
Uninstall / Reinstall of Anaconda
Tried adding Anaconda to system path
Using devtools version of Reticulate
Using the use_python function: use_python("C://Users/lvlah/Anaconda3/python.exe")
At my wit's end with this - none of my colleagues have had this issue. Any help would be appreciated.
I had the same problem and what seems to be an issue is that you need to first manually create the r-reticulate environment. I did it manually in Anaconda Navigator, but you can also do conda_create("r-reticulate") within R, as detailed in this tutorial.
I had exactly the same issue and after finding this helpful post I've solved it by installing OpenSSL. Hope it works for you!

Tensorflow installation with anaconda installation and run issue

I have been trying to install Tensorflow for a really long time now, but I never seem to make it work. I have tried to install Tensorflow via pip, virtual environment and anaconda so far. The installation process seem to run smoothly with all three methods. But as soon as I try to validate the installation by running "import tensorflow" I get the following error. I know it looks kind of chaotic, I wasn't sure how to pose the question.
By now, all help is appreciated
Thanks
As mentioned, you have to install python 3.5.X first
Secondly, I strongly recommend you to use anaconda. You should install anaconda 4.4.0 for python 3.6 version and 64-bit installer.
Then, you should run the following command
conda create -n tensorflow python=3.5
By the way, would you watch the tensorflow installation tutorial ?
TensorFlow versions 1.2 and later are compatible with Python 3.6. The error message points to the actual problem:
ImportError: libcudnn.so.5: cannot open shared object file: No such file or directory
This implies two things:
You have installed the tensorflow-gpu package, which requires a CUDA-capable GPU and a working installation of CUDA and cuDNN.
TensorFlow cannot find cuDNN.
This answer explains how to fix your cuDNN installation.
Update:
I get a similar error but the message in the bottom is now:
"ImportError libnvidia-fatbinaryloader.so.384.47: cannot open shared object file: No such file or directory"
Also when I enter "which nvcc" it returns /usr/bin/nvcc

Categories