i am currently preparing my Asus Notebook for the installation of a Python-development environment.
the prelimininary things i do are the following tests and here is what i have encountered.
note: i am on Linux:
Code: Select all
martin@MartinsMX-Rechner:~
$ python --version
Python 2.7.13
martin@MartinsMX-Rechner:~
$ uname -a
Linux MartinsMX-Rechner 4.19.0-5-amd64 #1 SMP Debian 4.19.37-2~mx17+1 (2019-05-15) x86_64 GNU/Linux
martin@MartinsMX-Rechner:~
$
well - i guess that i have to
- renew the python version. this is pretty important!
- have a closer look at the MX-version ( - actual version is 19.1
then i should do the following:
to setup pipenv to run and work with Python.
Code: Select all
cf. python-guide.org/dev/virtualenvs/
Make sure you’ve got Python & pip
Before you go any further, make sure you have Python and that it’s available from your command line. You can check this by simply running:
$ python --version
You should get some output like 3.6.2. If you do not have Python, please install the latest 3.x version from python.org or
refer to the Installing Python section of this guide.
the question is: How do I setup pipenv to use Python 3.6 when my system does not have python 3.6?
Code: Select all
$ pipenv --python 2.7.1.3
Warning: python 2.7.1.3 was not found on your system…
Code: Select all
$ pipenv --python path/to/python
- either i can manually write the version i need in the according Pipfile:
Code: Select all
[requires]
python_version = "2.7.1.3"
i think that i have to follow the installation instructions, then afterwards installing Python 2.7.1.3. is just a matter of
Code: Select all
pyenv install 2.7.1.3
Code: Select all
pyenv global system 2.7.1.3
by the way: Well - i am on Linux and i want to set up the environment on a linux-machine.This does a user installation to prevent breaking any system-wide packages. If pipenv isn’t available in the shell after installation, you’ll need to add the user base’s binary directory to your PATH.
On Linux and macOS you can find the user base binary directory by running python -m site --user-base and adding bin to the end. For example, this will typicallyto the absolute path to your home directory) so you’ll need to addCode: Select all
print ~/.local (with ~ expanded
by the way: On Windows you can find the user base binary directory by running py -m site --user-site and replacing site-packages with Scripts.Code: Select all
~/.local/bin to your PATH. You can set your PATH permanently by modifying ~/.profile.
For example, this could return C:\Users\Username\AppData\Roaming\Python36\site-packages so you would need to set your PATH to include C:\Users\Username\AppData\Roaming\Python36\Scripts. You can set your user PATH permanently in the Control Panel. You may need to log out for the PATH changes to take effect.
what do you say...?
Look forward to hear from you