Unsolved Calling Setup.py in Ubuntu 20.04 does not work
-
@PythonQTMarlem
Just from reading what it says: you don't have permission to write into/usr/local/lib/python3.8/dist-packages/test-easy-install-3247.write-test
. Either runs as a user who does and wishes to install there, or follow the suggestion of--install-dir ...
to specify where you want it installed.?
-
thank you.
This directory /usr/local/lib/python3.8/dist-packages/test-easy-install-3247.write-test can call:
/usr/local/lib/python3.9/dist-packages/test-easy-install-3247.write-test
/usr/local/lib/python4.0/dist-packages/test-easy-install-3247.write-test
and so on.I think i have to look to --install-dir to define this in setup.py
-
@PythonQTMarlem Just to add to @JonB /usr/local is not writeable by non root users. If you want to install there you have to use sudo.
-
-
@PythonQTMarlem Code examples for what?
To use sudo you just dosudo ./Setup.py
-
@PythonQTMarlem said in Calling Setup.py in Ubuntu 20.04 does not work:
You think: sudo python3 setup.py install
Right? -
@PythonQTMarlem Yes, but python3 should not be necessery if you have
#!/usr/bin/env python3
-
@jsulm said in Calling Setup.py in Ubuntu 20.04 does not work:
#!/usr/bin/env python3
sudo python3 setup.py install works. Thank you.
The #! / Usr / bin / env python3 doesn't always work. But that's the next topic I'm going to deal with.
-
@PythonQTMarlem said in Calling Setup.py in Ubuntu 20.04 does not work:
The #! / Usr / bin / env python3 doesn't always work. But that's the next topic I'm going to deal with.
Look forward to reading what you say about that not working :)
-
@JonB said in Calling Setup.py in Ubuntu 20.04 does not work:
Look forward to reading what you say about that not working :)
Executable bit not set? :-)