Issue with installing PIL [duplicate] - python

This question already has answers here:
Why does "pip install" inside Python raise a SyntaxError?
(7 answers)
Closed 5 years ago.
I am trying to install PIL. I have tried going through the settings and do it that way. When that didn't work, I tried to do it through the terminal. I got an error message:
C:\Users\Chris\Desktop\Paul's stuff\Paul\CpmpProject\venv\Scripts\python.exe" "C:/Users/Chris/Desktop/Paul's stuff/Paul/CpmpProject/Game.py"
File "C:/Users/Chris/Desktop/Paul's stuff/Paul/CpmpProject/Game.py", line 3
pip install PIL
^
SyntaxError: invalid syntax`
I have no idea how to install PIL now and am hoping someone can help me. I am working with python 3 and have updated pip and set up tools.

You'll have to enter pip install on your command line, it's not valid Python code.
Also, as others have mentioned, install pillow instead of PIL, the interface is identical.

Related

Installing wordcloud package for python error [duplicate]

This question already has answers here:
error: Unable to find vcvarsall.bat
(42 answers)
Closed 6 years ago.
pip install wordcloud
This gives me the error "Can't find vcvarsall.bat".
I also tried to install the whl version but everyone I tried gave me the error "not a supported whl on this platform".
Let me know if I need to explain something better.
You need to install:
https://www.microsoft.com/en-us/download/details.aspx?id=44266
Then pip should work fine!

How to install freetype and png for matplotlib [duplicate]

This question already has answers here:
Python (Win 10): Installing matplotlib requires packages "freetype" and "png"?
(4 answers)
Closed 6 years ago.
I'm trying to install freetype (and libpng) for using matplotlib.
I download the tar.gz files and decompress them.
But now i don't know what to do... Usually I use "python setup.py install" but there is no setup.py file.
For Windows, this is not a convenient way to install the dependencies. Use a package manager such as Anaconda.
See this answer for reference.

ImportError: No module named pyflakes [duplicate]

This question already has answers here:
Errors when running vim with the pyflakes plugin
(4 answers)
Closed 8 years ago.
This error occurred when I typed "vim FILENAME.py" in iTerm.
My screen looked like this every time I tried to add make .py
Screen shot:
https://www.dropbox.com/s/tadtiqqwc80vou6/%E8%9E%A2%E5%B9%95%E5%BF%AB%E7%85%A7%202014-11-03%20%E4%B8%8B%E5%8D%884.08.21.png?dl=0
I've tried to type "git submodule init && git submodule update" in pyflakes-vim but it did't work.
Can anybody help me?
Thanks in advance!
*I'm using python 2.7
Run pip install pyflakes to install pyflakes first.

Installing Matplotlib in Openshift; freetypelib dependency [duplicate]

This question already has answers here:
ubuntu 14.04, pip cannot upgrade matplotllib
(9 answers)
Closed 8 years ago.
I am trying to install Matplotlib in a Python cartridge in Openshift with pip. it fails due to a dependency on freetypelib.
Is there a way to make Matplotlib work in that environment?
Check if libfreetype is installed (try "locate libfreetype"), if you find some output then you may have look at this post https://www.openshift.com/forums/express/is-libjpeg-available#comment-35344
If not install libfreetype. Let me know if you have any problems installing libfreetype

Installing and using pip, "SyntaxError: invalid syntax" [duplicate]

This question already has answers here:
Why does "pip install" inside Python raise a SyntaxError?
(7 answers)
Closed 6 years ago.
I followed these instructions for installing pip on Windows 7. When I try to install the example package with pip install httpie (or any other package), it gives me the following error:
SyntaxError: invalid syntax
It also highlights the word install. And that's it. I am using Python 3.3.1 and used the corresponding installers in the instructions at the link above. Finally, I apologize if you consider this a duplicate, but Stack Overflow will not allow me to post on the answer in the original thread and I am getting an error message that they do not discuss.
You should type that in the command prompt, not in Python.
You're typing those commands in Python. They are not Python commands, they are shell commands. Type them in your shell!

Categories