Not installing with pip and python3
See original GitHub issueHello,
I’m starting to develop in Python under Archlinux. I would use your app, but I fail to install it.
It’s ok with python2 :
mkvirtualenv ProjectPython2 -p /usr/bin/python2
pip2 install django-tenant-schemas
But I fail to install django-tenant-schemas with Python3 (or 3.3):
mkvirtualenv crevProjectPython3 -p /usr/bin/python3
pip3 install django-tenant-schemas
or
mkvirtualenv crevProjectPython3.3 -p /usr/bin/python3.3
pip3.3 install django-tenant-schemas
The output is :
Downloading/unpacking django-tenant-schemas
Downloading django-tenant-schemas-1.4.4.tar.gz (163kB): 163kB downloaded
Running setup.py (path:/home/antoine/.virtualenvs/ProjectPython3/build/django-tenant-schemas/setup.py) egg_info for package django-tenant-schemas
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/home/antoine/.virtualenvs/ProjectPython3/build/django-tenant-schemas/setup.py", line 4, in <module>
from version import get_git_version
File "./version.py", line 104
print get_git_version()
^
SyntaxError: invalid syntax
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/home/antoine/.virtualenvs/ProjectPython3/build/django-tenant-schemas/setup.py", line 4, in <module>
from version import get_git_version
File "./version.py", line 104
print get_git_version()
^
SyntaxError: invalid syntax
- ----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /home/antoine/.virtualenvs/ProjectPython3/build/django-tenant-schemas
Storing debug log for failure in /home/antoine/.pip/pip.log
What I know : under Archlinux, default Python refers to python3.
These are my first steps with Python and I don’t find on the net how to solve this problem. Sorry if this is not an issue…
Issue Analytics
- State:
- Created 10 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
pip3 is not installing packages for python3 - Stack Overflow
In you case the first line must be #!usr/bin/python2 . You can varify that by using pip3 -V on your terminal. The other...
Read more >How to install and use Pip3 - ActiveState
Install Pip3. pip3 is the official package manager and pip command for Python 3. It enables the installation and management of third party ......
Read more >How to install modules with PIP (and fix it when it fails) - Medium
Conclusive solution. This runs pip through python shell and is almost guaranteed to work. If this still does not work you should definitely ......
Read more >Can't install python3-pip - Ask Ubuntu
I'm trying to install python3-pip but when I do sudo apt-get install python3-pip. I get I have dependencies problems with python3-dev, ...
Read more >Installing Python Modules — Python 3.11.1 documentation
Pip not installed¶. It is possible that pip does not get installed by default. One potential fix is: python - ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This app was coded using Python2.7, so maybe with minor adjustments it’d work with Python3. Can you use Python2 for now?
The error is about the new print statement in python3, which forces the use of parentheses.
This issue still exists when trying to install using pip and python 3 😦