So I deleted python3.6 from Windows 10, and now whenever I try to 'pip install' something I get this following error:
"Fatal error in launcher: Unable to create process using '"d:\program files (x86)\python36-32\python.exe" "D:\Program Files (x86)\Python36-32\Scripts\pip.exe" install tensorflow': The system cannot find the file specified."
I know the work around is just to python -m pip install <...> instead which defaults to the python version I am currently running, but I am wondering how to address the root cause of the issue.
Related
I had by error installed python twice (3.8 via Windows Store and 3.9 via python installer) on a Win10 machine and after removing both of them and reinstalling 3.9, Python works fine but jupyter (installed with pip) keeps returning the fatal error: Fatal error in launcher: Unable to create process using '"c:\pythonXX\python.exe" "C:\Users\xx\AppData\Roaming\Python\PythonXX\Scripts\jupyter.exe" ': Le fichier spÚcifiÚ est introuvable.
(specified file not found in french)
I tried to specify the path to the python.exe in the kernel.json but no luck.
The folder c:\pythonXX\ doesn't exist, but I check the PATH and there's no mention of this folder.
Does someone have an idea of how to correct it ? Or should I make a clean and full uninstall of Python again ?
Thanks in advance
After some searching on the jupyter/notebook github issues, I found a correction/workaround:in my PATH environment variable, I had duplicate folders pointing to PythonXX and PythonXX/Scripts folders.
I kept the set corresponding to "where python" was, and forced the re-install of jupyter.
pip install jupyter --force-reinstall
and I was then able to launch jupyter without the error.
I'm trying to install Pyinstaller to my computer using pip to convert a python file into a .exe file. When I try to install it, Command Prompt gives me the following error :
Fatal error in launcher: Unable to create process using
'"c:\python27\python.exe" "C:\Python27\Scripts\pip.exe" install
pyinstaller': The system cannot find the file specified.
I've done some looking online and tried just about everything I've found this far and I'm at a loss. I have tried:
using python - m pip install xxxx
updating pip
reverting back to a previous version of pip
using Command Prompt as an Admin
making sure pip is in my PATH using environmental variables
uninstalling and doing a complete reinstall of python.
Reading other people's questions related to this problem, several people suggested running different lines of code like python -c "import pip.__main__" and python -m pip install pip==9.0.0 and my Command Prompt doesn't do anything, even while running as an admin. I assume that I have something fucked up deep in my files or settings that I didn't even realize I changed, but I can't see it for the life of me. I'd be happy to try any suggestions anyone has. Thanks!
Edit: It seems like there may be something wrong with my Command Prompt? When I try entering python -m venv venv, it doesn't do anything or acknowledge the command.
getting some errors when trying to run spyder (3.2.4) and I am thinking it is because of its install location.
On ubuntu-17.10, using python 3.6.3, I wanted a pip installed version of spyder and using pip3 install --user spyder which went with all the other packages in ~/.local/lib/python3.6/site-packages and sent the executable to ~/.local/bin.
Running the spyder3 executable returns a long list of errors and permission denials.
I have tried installing it by sudo pip3 install -U spyder which goes to /usr/local/bin/ but nothing changes. Also I want the installation in my home folder with the other packages. What have I done wrong? Is this an incorrect way to use spyder?
$ ~/.local/bin/spyder3
Failed to write user configuration file.
Please submit a bug report.
Traceback (most recent call last):
File "/home/stelios/.local/lib/python3.6/site-packages/spyder/utils/external/lockfile.py", line 150, in lock
symlink(str(os.getpid()), self.name)
FileExistsError: [Errno 17] File exists: '9449' -> '/home/stelios/.config/spyder-py3/spyder.lock'
This was only part of the full error message but it was quite long and I didn't want to clutter the quesion. If you need to see it in full please let me know and I will post it.
I just started learning Python, and successfully downloaded Python 3.5. I attempted to download/upgrade PIP 8.1.2 multiple times using get-pip.py, which I ran (successfully I think) but when I attempted to execute python get-pip.py
I got the error code:
File "<stdin>", line 1
python get-pip.py
^
SyntaxError: invalid syntax
I understand that pip is included in python but the pip website requires users to upgrade pip which I don't think I can since any pip commands lead to syntax errors, and do not produce the same output that most tutorial sites show. I have tried to find different ways to fix it, but I can't figure out whats wrong aside from pip not being on the computer in the first place or corrupted. Thank you for your assistance.
You won't need to upgrade pip if you just downloaded python 3.5, go to where you have your Python3.5 file and open the folder Scripts, you will find pip.exe. Open powershell and use the cd command to move to the folder containing pip.exe. From here you can use pip install to get modules.
Open Windows Powershell
PS C:Users\you> cd C:\path\to\scripts\folder\containing\pip
PS C:\path\to\scripts\folder\containing\pip> pip install module
Not sure what you are asking. If you want to run python get-pip.py do it in a windows command prompt, not in the python interpreter. But I do not know why you would want to do that.
You already have pip; there is no need to run get-pip. Upgrading can be done by pip itself.
But the reason you are getting errors is that all these commands, including pip itself, should be run at the command line, not in the Python interpreter.
I have pip.exe in the Python27 directory I'm trying to check if it is installed well by giving the command:
C:\Python27>pip
Every time I do so I get the following error message:
Fatal error in launcher: Unable to create a process using `"C:\Python34\python.exe" "C:\Python27\pip.exe" `
I have changed the PATH in the environment variables so there is NO mention of Python34.
Why won’t it show pip is installed? Thanks for help.
I have followed advice about changing the PATH by editing the environment variables etc... For some reason it always tries to follow a path via Python34 which is not there! Is that why it gives the error?
I can get Python to execute with the same approach but never pip.
I want to install Django.