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\__init__.py", line 11, in <module>
from logging.config import dictConfig as logging_dictConfig
File "C:\Users\MyUserName\Desktop\Ampps\python\lib\logging\config.py", line 30, in <module>
import logging.handlers
File "C:\Users\MyUserName\Desktop\Ampps\python\lib\logging\handlers.py", 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\__init__.py", 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\__init__.py", 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\__init__.py", 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\dictconfig.py", line 22, in <module>
import logging.handlers
File "C:\Users\MyUserName\Desktop\Ampps\python\lib\logging\handlers.py", line 28, in <module>
import queue
ImportError: No module named 'queue'
The fastest way is:
If you want the latest pip, you can run
afterwards.
It happened to me using pip package, then I solved it like below:
1) First of all uninstall pip using python command
2) Then reinstall pip package using easy_install command
3) Finally, try again pip command on command line directly, install any package
or only execute pip command
I solved it by following the steps from this website https://www.sysrecon.com/programming/python-pip-how-to-get-around-fatal-error-in-launcher-unable-to-create-process-using/
Update pip using: python -m pip install -U pip from command line after you've located the right directory in which python is installed in your machine.