Mar-16-2020, 10:01 AM
dear Pythonists - dear experts - hello to the community,
first of all - i am a big big Python Fan.
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.
- renew the python version
- 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.
the question is: How do I setup pipenv to use Python 3.6 when my system does not have python 3.6?
- either i can manually write the version i need in the according Pipfile:
i think that i have to follow the installation instructions, then afterwards installing Python 2.7.1.3. is just a matter of
by the way: Well - i am on MX-Linux and i want to set up the environment on a linux-machine.
what do you say...?
Look forward to hear from you
first of all - i am a big big Python Fan.
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.
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
- 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.
cf. python-guide.org/dev/virtualenvs/
Quote: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?
$ pipenv --python 2.7.1.3 Warning: python 2.7.1.3 was not found on your system…You can specify specific versions of Python with:
$ pipenv --python path/to/pythoni guess - that i either sensu python-guide.org/dev/virtualenvs/ can work on the issues:
- either i can manually write the version i need in the according Pipfile:
[requires] python_version = "2.7.1.3"Or i can install it on my system. But I guess we will need the version to be installed if we plan to actually run pipenv install.therefore i think that i should go ahead and use pyenv sensu: https://github.com/pyenv/pyenv.
i think that i have to follow the installation instructions, then afterwards installing Python 2.7.1.3. is just a matter of
pyenv install 2.7.1.3Then i can set the order of preference with
pyenv global system 2.7.1.3Besides, if pyenv is available, pipenv will automatically use it to install the required version. From pipenv README: Automatically install required Pythons, if pyenv is available.
Quote: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 typicallyprint ~/.local (with ~ expandedto the absolute path to your home directory) so you’ll need to add~/.local/bin to your PATH. You can set your PATH permanently by modifying ~/.profile.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.
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.
by the way: Well - i am on MX-Linux and i want to set up the environment on a linux-machine.
what do you say...?
Look forward to hear from you
Wordpress - super toolkits a. http://wpgear.org/ :: und b. https://github.com/miziomon/awesome-wordpress :: Awesome WordPress: A curated list of amazingly awesome WordPress resources and awesome python things https://github.com/vinta/awesome-python