python - notebook - fatal error in launcher: unable to create process using '"' jupyter

Pip-Fatal error in launcher: Unable to create process using '"' (14)

Check the file name, in the path whether it is just pip or pip2.7.exe

in that case rename the file to pip.exe then run pip command.

I installed python 3.5.1 via ampps and it's working. However, when i try to use pip, i get the following message:

Fatal error in launcher: Unable to create process using '"'

I already reinstalled ampps into a path which doesn't include any whitespaces. Note that the "python -m pip" workaround doesn't work for me too, since i get the following message everytime i use it:

C:\Users\MyUserName\Desktop\Ampps\python\python.exe: Error while finding spec for 'pip.__main__' (<class 'ImportError'>: No module named 'queue'); 'pip' is a package and cannot be directly executed

How do i get pip to work properly? I hope, there is a way to use the pip command itself without the preceding python command.

EDIT: This is what happens, if i try to run python -c "import pip.__main__":

Traceback (most recent call last):
  File "C:\Users\MyUserName\Desktop\Ampps\python\lib\site-packages\pip\compat\", line 11, in <module>
    from logging.config import dictConfig as logging_dictConfig
  File "C:\Users\MyUserName\Desktop\Ampps\python\lib\logging\", line 30, in <module>
    import logging.handlers
  File "C:\Users\MyUserName\Desktop\Ampps\python\lib\logging\", line 28, in <module>
    import queue
ImportError: No module named 'queue'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Users\MyUserName\Desktop\Ampps\python\lib\site-packages\pip\", line 13, in <module>
    from pip.utils import get_installed_distributions, get_prog
  File "C:\Users\MyUserName\Desktop\Ampps\python\lib\site-packages\pip\utils\", line 18, in <module>
    from pip.compat import console_to_str, stdlib_pkgs
  File "C:\Users\MyUserName\Desktop\Ampps\python\lib\site-packages\pip\compat\", line 13, in <module>
    from pip.compat.dictconfig import dictConfig as logging_dictConfig
  File "C:\Users\MyUserName\Desktop\Ampps\python\lib\site-packages\pip\compat\", line 22, in <module>
    import logging.handlers
  File "C:\Users\MyUserName\Desktop\Ampps\python\lib\logging\", line 28, in <module>
    import queue
ImportError: No module named 'queue'

Check your Windows PATH environment variable. It has a limit of 260 characters and your python location might be past that character limit.

You can either move your Python paths higher in the path list or disable the Windows character limit as described here:

A registry key allows you to enable or disable the new long path behavior. To enable long path behavior set the registry key at HKLM\SYSTEM\CurrentControlSet\Control\FileSystem LongPathsEnabled (Type: REG_DWORD). The key's value will be cached by the system (per process) after the first call to an affected Win32 file or directory function (list follows). The registry key will not be reloaded during the lifetime of the process. In order for all apps on the system to recognize the value of the key, a reboot might be required because some processes may have started before the key was set.

The registry key can also be controlled via Group Policy at Computer Configuration > Administrative Templates > System > Filesystem > Enable NTFS long paths.

I fixed my issue by...

  1. downloading Python 3 at the official website and installing it via express installation
  2. Copy & Paste the standalone python into the ampps/python folder and overwriting the python version provided by AMPPS
  3. running python -m pip install --upgrade pip in cmd

Now pip and python 3 are installed in their latest version.

It seems that AMPPS doesnt't provide a full-fledged python build. So you need to update python yourself.

Thanks to y'all.

I found a very simple solution to, (Pip - Fatal error in launcher:)

1) You must not have multiple environmental variables for the python path.

A) Goto Environmental Variables and delete Python27 in the path if you have Python 3.6.5 installed.  Pip is confused by multiple paths!!!

I got the same error when installed both python2 and python3 on my Windows 7.

You can use python3 -m pip install xxxxxx to install your package.

Or, fix it completely:

  1. Try to run python3 -m pip install --upgrade pip in cmd.

  2. If failed in step 1, try python3  -m pip install --upgrade --force-reinstall pip

I met the the same error as you.that is because i had transplanted my python file from D disk to e disk. after that ,when I inputed python ,it worked. pip and other exe file which has the same path as pip ,it did not work. when "python -m pip install --upgrade pip" order was inputed,pip order worked,but other exe file which has the same path as pip did not work,so i think it is not the best way. at last I unistalled my python,and re-install it.everything is okay.maybe it is not the best way for all of you ,but it is for me.

I started seeing the

Fatal error in launcher: Unable to create process using '"'

after installing Python 3.6 onto a Windows 10 machine. I set the Path variable to point to the Python36 folder. The python command functioned correctly, but the pip command did not.

To fix the error, I opend up the command prompt shell with administrator privileges and ran the pip commands.

I started seeing this error after I moved my project (including its virtual environment). Deleting and recreating the virtual environment set everything right.

As RolfBly mentioned, running python -m pip freeze > somefile prior to deleting the environment allows for quick recovery: running pip -r somefile in the new environment will restore all packages.

My solution is quite simple, i faced the same problem

Fatal error in launcher: Unable to create process using '"'

the solution was to change the path from where i am running pip.

My solution is to run twine upload over the python -m argument.

So just use python -m:

python -m twine upload dist/*

The fastest way is:

python -m pip install pip==9.0.0

If you want the latest pip, you can run

pip install -U pip


The same error, but in a different situation. I have a virtual environment, in which I ran, in the VE's \Scripts directory where pip.exe is:

pip freeze

I got the error message

Fatal error in launcher: Unable to create process using '"'

There is no space in my VE path (google that error). Then I tried python -m pip install --upgrade pip and got

Requirement already up-to-date: pip in o:\upsdowns\flask\lib\site-packages

so then I tried

python -m pip freeze

and that worked. I think it might be a path issue in the VE, but I'm OK with this workaround.

I'm adding this here because this page is high up when you google that errormessage. In other words, I didn't make a new question, even though my situation is quite different from the OP's. Possibly even, I got into that situation because I didn't add modules to the virtual environment "properly".

Anyway, I hope it helps some.

run this python code:

import pip
pip.main(['install','flask']) # replace flask with the name of module you want to install

If you need to install multiple modules from a requirements.txt file,

import pip
fo = open("C:/...../requirements.txt", "r")
inp =
ls =inp.split()     

for i in ls:

D:\Python36\Scripts>pip3 -V
Fatal error in launcher: Unable to create process using '"'

D:\Python36\Scripts>python3 -m pip freeze
You are using pip version 8.1.2, however version 9.0.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' comm

D:\Python36\Scripts>python3 -m pip install --upgrade pip

D:\Python36\Scripts>pip3 -V
pip 9.0.1 from d:\python36\lib\site-packages (python 3.6)