version

How to Add Another Name Option for Python click.version_option?

How to Add Another Name Option for Python click.version_option? Question: My question is exactly the same as in How to add option name to the Version option in Click I have the code, and I am able to print out the version of my library using the command "py main.py –version" See: https://click.palletsprojects.com/en/8.1.x/api/#click.version_option @click.version_option(version=version) def …

Total answers: 1

How do I get pyenv to display the executable path for an installed version?

How do I get pyenv to display the executable path for an installed version? Question: Install a python version using: $ pyenv install 3.8.9 Installed Python-3.8.9 to /Users/robino/.pyenv/versions/3.8.9 List the python versions now available: $ pyenv versions * system 3.8.2 3.8.9 A week goes by and I forget where it is installed. Now suppose I …

Total answers: 2

How to find latest version number of python from web?

How to find latest version number of python from web? Question: I’m looking for getting latest version of python. For example, I can find latest version of golang at https://go.dev/VERSION?m=text Is there same thing as golang? Asked By: edp1096 || Source Answers: This may not be the best way to do it but you can …

Total answers: 2

setup.py's install_requires – how do I specify python version range for a specific dependency?

setup.py's install_requires – how do I specify python version range for a specific dependency? Question: I’m working on a python project and the package supports python 3.6 – 3.10. There were these 2 lines in the install_requires list in setup.py: "numpy>=1.18.5, <=1.19.5; python_version==’3.6’", "numpy>=1.19.5; python_version>=’3.7’", And I tried to change them to "numpy>=1.18.5, <=1.19.5; python_version==’3.6’", …

Total answers: 1

permission denied on Mac

permission denied on Mac Question: I want to change the default version of my Python on Mac from Python2 to Python3. However, when I try to do that, it says that the permission is denied. Here is what I have tried: ls -l /usr/local/bin/python* The output was: lrwxr-xr-x 1 root wheel 69 Jun 21 10:41 …

Total answers: 2

How can I check my python version in cmd?

How can I check my python version in cmd? Question: I has downloaded python in python.org, and I wanted to check my python version, so I wrote python –version in cmd, but it said just Python, without version. Is there any other way to find out python version? Asked By: New Programmer || Source Answers: …

Total answers: 2

VSCode issue with Python versions and environments from Jupyter Notebooks

VSCode issue with Python versions and environments from Jupyter Notebooks Question: Issue: I am having issues with the environment and version of Python not matching the settings in VSCode, and causing issues with the packages I am trying to use in Jupyter notebooks. I am using a Windows 10 machine with Python 3.9.1 installed (including …

Total answers: 2

nodejs ask python-minimal that no longer use on python2

nodejs ask python-minimal that no longer use on python2 Question: i use linux nodejs had no problem untill i upgraded my system (sudo apt upgrade) now when i try to install nodejs it say python-minimal mot installed then i knew that it casue of updating python from python2.7.17 to python2.7.18 and python minimal is no …

Total answers: 2

How to change Python version of existing conda virtual environment?

How to change Python version of existing conda virtual environment? Question: I created a conda environment with Python version 3.8, but it doesn’t support matplotlib… So I am looking for something like this to change the Python version: conda env my_env update to python=3.6. Is this possible or do I need to recreate the environment? …

Total answers: 3

Is it possible to check chromedriver.exe version at runtime in python?

Is it possible to check chromedriver.exe version at runtime in python? Question: I’m trying to check compatibility of chrome and chromedriver to prompt the user to download the correct chromedriver version if needed. I’m looking to check the version of chrome driver in a way similar to how i check chrome.exe shown below. from win32api …

Total answers: 3