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'
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 got this error while running the command using
pip3
. I have python 3.6 installed on windows. I was trying this-pip3 install PACKAGENAME
It gave error. The solution in this particular case is simply to run the command as
pip
.pip install PACKAGENAME
My solution is quite simple, i faced the same problem
the solution was to change the path from where i am running pip.
run this python code:
If you need to install multiple modules from a requirements.txt file,
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: https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx
I fixed my issue by...
python -m pip install --upgrade pip
in cmdNow 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.