I installed anaconda the latest version of anaconda, anaconda3-2022.05 and i got the error failed to initialize anaconda directories and it is pointing towards anaconda3\lib_nsis.py and i don't know what is the problem and even when using old version of anaconda still get the same error.
Can someone help please
Related
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.
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.
I am struggling to install dlib for Python 3.6 on Windows 10. I've installed and built boost, added ...\boost_1_63_0 folder along with ...\boost_1_63_0\stage\lib folder to the PATH.
But I still have the following message
LINK : fatal error LNK1104: cannot open file 'python36.lib' [C:\Users\admin\dlib\tools\python\build\dlib_.vcxproj]
19 Warning(s)
1 Error(s)
Time Elapsed 00:05:03.17
error: cmake build failed!
when I try to type python setup.py install in command prompt.
Also, I have LINK : fatal error LNK1104: cannot open file 'libboost_python-vc140-mt-s-1_63.lib' message, when I try to install dlib through pip install dlib.
Please, help me! Otherwise, I'm feeling desperate right now after all those hours of searching for a valid solution.
After all those wasted hours of search, I have finally fixed this problem. So I will just leave the way that worked for me, so people who will face the same problem in future could find it.
The reason for such an error was that dlib's latest version doesn't support Python 3.6, which I have never noticed anywhere except this page.
The solution for problem was to install Python 3.5 and to add C:\..\Python35\libs, C:\..\Python35\include, C:\..\Python35, C:\..\Python35\Scripts paths to Windows system PATH.
I had python 2.7 before and then I installed python 3.4.The OS is windows 10
I have renamed
C:\python27\python.exe to python2.exe (when I run python2 --version it shows correct version)
and
C:\python34\python.exe to python3.exe (when I run python3 --version it shows correct version)
I have set the path variable manually and there is no space etc.
I was trying to create a virtual environment and assign python34 to this new environment.
I was going through this SO reference -- Using VirtualEnv with multiple Python versions on windows
prompt>> virtualenv -p c:\Python34\python3.exe casenv
But I got an error--
Fatal error in launcher: Unable to create process using '"'
Do I need to install virtualenv again for python34 or somewhere I need to set virtualenv path for each python installation.
Any help is highly welcomed.
In my case, i had installed python 3.6 and uninstalled python 2.7 when i got this error.
Completely deleting the C:\Python2.7 directory did the trick.
This error is usually caused because of python directory of different versions stored at same location.
i.e in my case I was using python 3.5.X for development and when I updated to 3.7.6 I got this error.
People on internet suggest that it is because of pip but main cause is 2 or more python directory.
The following steps should fix it:
Uninstall previous python version (or use virtual environment if you want to play with multiple python version)
Delete the python directory you are not using (as it causes confusion for terminal to understand which python path it should pick to execute the command)
and this should fix the error of
fatal error in launcher unable to create process using ' '
Pip version: 10.0.0
Python version: 3.6.5 64 bit
Operating system: Windows 7 Ultimate, Service Pack 1, 64-bit
Description:
After upgrading pip to the version 10.0.0 (from Pycharm, that is using pip as a package) any attempts to start updated pip cause an error:
Fatal error in launcher: Unable to create process using '""c:\program files\python 3.6\python.exe" "C:\Program Files\Python 3.6\Scripts\pip.EXE"'
Command python -m pip works as expected.
I found text "Fatal error in launcher" only in executables:
src\pip_vendor\distlib\t32.exe
src\pip_vendor\distlib\t64.exe
and in the pip.exe itself.
After
python -m pip uninstall pip
easy_install.exe pip
error disappeared.
It is interesting, that initially pip.exe had almost the same size as t64.exe, now it significantly shorter.
If someone came after installing a newer version like 3.X and uninstalled the older version, what you need to do is to delete the old version's folder from C Drive.
Clean Fix (Windows)
The fastest way to fix the issue you were facing is to uninstall and reinstall.
Why it happened?
You probably moved the directory where python was installed.
You probably have both environmental variables listed in Environmental Variables.
Things to consider
You can only use 1 active version of python at a time if you use the MSI installer.
If you downloaded the zip file of Python, you can have unlimited versions in your computer BUT you can only have 1 active version under Environmental Variables.
You can always use any version of Python explicitly by writing the direct path to the specific location of the version of Python.
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