Skip to content

Installation error downloading jquery on python3 on Ubuntu #17075

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
pySRURGS opened this issue Apr 8, 2020 · 7 comments · Fixed by #17076
Closed

Installation error downloading jquery on python3 on Ubuntu #17075

pySRURGS opened this issue Apr 8, 2020 · 7 comments · Fixed by #17076
Labels
Milestone

Comments

@pySRURGS
Copy link

pySRURGS commented Apr 8, 2020

Bug report

Syntax error when downloading/installing jquery-ui

I am trying to install some software that depends on Matplotlib. When I run the installation script, matplotlib installation throws this error.

Code for reproduction

```pip3 install matplotlib --user````

Actual outcome

    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-y0fnsonx/matplotlib/setup.py", line 139
        raise IOError(f"Failed to download jquery-ui.  Please download "
                                                                       ^
    SyntaxError: invalid syntax

    ----------------------------------------

Matplotlib version

Ubuntu 16.04 (Windows Subsystem for Linux)
Matplotlib 3.2.1
Python version 3.7

Installing matplotlib using sudo apt-get install python3-matplotlib works fine though.

@QuLogic
Copy link
Member

QuLogic commented Apr 8, 2020

Python version 3.7

That cannot be true, because the syntax error is an f-string, which are available since 3.6. Please double-check that pip3 is running the Python you think it's running.

@pySRURGS
Copy link
Author

pySRURGS commented Apr 8, 2020

You are correct. My pip was actually pointing to python3.5.

@pySRURGS pySRURGS closed this as completed Apr 8, 2020
@QuLogic
Copy link
Member

QuLogic commented Apr 8, 2020

We should remove this and error out better.

@yingdi11
Copy link

Running in anaconda environment in windows. I am new to python. Not sure what I did wrong.

(base) C:\Users\DiYing>python --version
Python 3.7.6

(base) C:\Users\DiYing>pip3 install C:\Users\DiYing\Downloads\imageai-2.1.5-py3-none-any.whl
Processing c:\users\diying\downloads\imageai-2.1.5-py3-none-any.whl
Collecting pillow (from imageai==2.1.5)
Using cached https://files.pythonhosted.org/packages/d1/89/ab37df755c493ddf26ad047c29565b7640c0e1b78f1013ef47fe9d310bdf/Pillow-7.1.1-cp35-cp35m-win_amd64.whl
Requirement already satisfied (use --upgrade to upgrade): numpy in c:\users\diying\appdata\local\programs\python\python35\lib\site-packages (from imageai==2.1.5)
Requirement already satisfied (use --upgrade to upgrade): scipy in c:\users\diying\appdata\local\programs\python\python35\lib\site-packages (from imageai==2.1.5)
Requirement already satisfied (use --upgrade to upgrade): h5py in c:\users\diying\appdata\local\programs\python\python35\lib\site-packages (from imageai==2.1.5)
Collecting matplotlib (from imageai==2.1.5)
Using cached https://files.pythonhosted.org/packages/4a/30/eb8e7dd8e3609f05c6920fa82f189302c832e5a0f6667aa96f952056bc0c/matplotlib-3.2.1.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\DiYing\AppData\Local\Temp\pip-build-oxpnig03\matplotlib\setup.py", line 139
raise IOError(f"Failed to download jquery-ui. Please download "
^
SyntaxError: invalid syntax

----------------------------------------

@QuLogic
Copy link
Member

QuLogic commented Apr 13, 2020

(base) C:\Users\DiYing>python --version
Python 3.7.6

(base) C:\Users\DiYing>pip3 install C:\Users\DiYing\Downloads\imageai-2.1.5-py3-none-any.whl
Processing c:\users\diying\downloads\imageai-2.1.5-py3-none-any.whl
Collecting pillow (from imageai==2.1.5)
...
c:\users\diying\appdata\local\programs\python\python35\lib\site-packages

Your pip3 is for a different Python.

@yingdi11
Copy link

You are right. should I use pip instead of pip3?

@pySRURGS
Copy link
Author

You are right. should I use pip instead of pip3?

Well, your pip probably points to python 2. You should find the pip binary that is related to your python 3.7. Helping you with that is probably beyond the scope of this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants