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.
Related
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.
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!
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
This question already has answers here:
Why does "pip install" inside Python raise a SyntaxError?
(7 answers)
Closed 6 years ago.
New to Python here. I am running Python 2.7.7 x86 and Windows 7. I am trying to install the requests module. I've tried:
pip install requests
in the Python shell and in the Windows command line (cmd) (I saw this question, which suggested using cmd), and I keep getting the same error:
SyntaxError: invalid syntax
I tried to check if pip even installed correctly by running:
installed_packages = pip.get_installed_distributions()
installed_packages_list = sorted(["%s==%s" % (i.key, i.version) for i in installed_packages])
print installed_packages_list
Which I got from this question. I got [] as the output. I'm interpreting this to mean that pip wasn't successfully installed. I tried reinstalling pip by running get-pip.py, and got the output:
Requirement already up-to-date: pip in c:\python27\lib\site-packages
Cleaning up...
Which I'm interpreting as Python telling me pip was installed. I'm really confused now... how do I make sure pip is correctly installed, and then install the requests module? Any help would be appreciated.
This is a commonly asked question, and one for which there's hardly a canonical answer that would be on-topic for SO (honestly this is more a Superuser thing, but since it's pertinent to coding -- even though it's NOT coding by any means -- it will fly here).
If you have pip (by running get-pip.py or etc) it will exist in your Python directory. If you're running Python 2.7, let's assume that that directory lives at C:\Python27\. In which case, pip exists at C:\Python27\scripts\pip.exe.
You can add that to your %PATH%, or navigate there each time you want to use pip. Whatever is most convenient. If nothing else:
COMMAND PROMPT WINDOW:
C:\users\yourname>set PATH = %PATH%;C:\python27\scripts
C:\users\yourname>pip install requests
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!