version

Force Anaconda to install tensorflow 1.14

Force Anaconda to install tensorflow 1.14 Question: Now, the official TensorFlow on Anaconda is 2.0. My question is how to force Anaconda to install an earlier version of TensorFlow instead. So, for example, I would like Anaconda to install TensorFlow 1.14 as plenty of my projects are depending on this version. Asked By: Anwarvic || …

Total answers: 2

python -m pip install –upgrade pip does not work

python -m pip install –upgrade pip does not work Question: Upgrading pip does not do anything, just tells me to upgrade Pip again and that the requirements are satisfied–however, I am on an old pip version. This is Python27, I get the same issue whether I am in a virtual environment or not. Output: C:Python27>python …

Total answers: 2

ERROR: Could not find a version that satisfies the requirement preshed==2.0.1

ERROR: Could not find a version that satisfies the requirement preshed==2.0.1 Question: I am trying to install spaCy on Windows. I am running python 3.6. When I run pip install -U spacy I get the following error: Looking in indexes: https://my-artifact-repo.com/artifactory/api/pypi/public-pypi/simple/ Collecting spacy Downloading https://my-artifact-repo.com/artifactory/api/pypi/public-pypi /packages/spacy/2.1.4/spacy-2.1.4.tar.gz (29.8MB) Installing build dependencies: started Installing build dependencies: finished …

Total answers: 1

Python executable running on different Linux versions

Python executable running on different Linux versions Question: I need to write a program that will be running in the end on CentOS (Version 6.3 – its a security appliance but I have root access) I installed a development environment in Ubuntu and used pyinstaller to create a single executable. In PyCharm I can select …

Total answers: 1

Is .data still useful in pytorch?

Is .data still useful in pytorch? Question: I’m new to pytorch. I read much pytorch code which heavily uses tensor’s .data member. But I search .data in the official document and Google, finding little. I guess .data contains the data in the tensor, but I don’t know when we need it and when not? Asked …

Total answers: 3

How to verify installed spaCy version?

How to verify installed spaCy version? Question: I have installed spaCy with python for my NLP project. I have installed that using pip. How can I verify installed spaCy version? using pip install -U spacy What is command to verify installed spaCy version? Asked By: Pramod S. Nikam || Source Answers: If you installed with …

Total answers: 8

How to find which version of TensorFlow is installed in my system?

How to find which version of TensorFlow is installed in my system? Question: I need to find which version of TensorFlow I have installed. I’m using Ubuntu 16.04 Long Term Support. Asked By: Hans K || Source Answers: This depends on how you installed TensorFlow. I am going to use the same headings used by …

Total answers: 19

How to check all versions of python installed on osx and centos

How to check all versions of python installed on osx and centos Question: I just started setting up a centos server today and noticed that the default version of python on centos is set to 2.6.6. I want to use python 2.7 instead. I googled around and found that 2.6.6 is used by system tools …

Total answers: 13

Python's argparse to show program's version with prog and version string formatting

Python's argparse to show program's version with prog and version string formatting Question: What’s the preferred way of specifying program name and version info within argparse? __version_info__ = (‘2013′,’03’,’14’) __version__ = ‘-‘.join(__version_info__) … parser.add_argument(‘-V’, ‘–version’, action=’version’, version=”%(prog)s (“+__version__+”)”) http://argparse.googlecode.com/svn/trunk/doc/ArgumentParser.html#prog http://pymotw.com/2/argparse/ http://www.python.org/dev/peps/pep-0386/ http://www.python.org/dev/peps/pep-0396/ http://www.python.org/dev/peps/pep-3001/ Asked By: type || Source Answers: Yes, that’s the accepted way. From …

Total answers: 2

How do I compare version numbers in Python?

How do I compare version numbers in Python? Question: I am walking a directory that contains eggs to add those eggs to the sys.path. If there are two versions of the same .egg in the directory, I want to add only the latest one. I have a regular expression r”^(?P<eggName>w+)-(?P<eggVersion>[d.]+)-.+.egg$ to extract the name and …

Total answers: 16