* Dev environment: Xiaomi Redmi Notebook 64-bit, RYZEN 4000 series 7. Windows 10 64-bit
Unlike in the book, on my computer pip install tensorflow just doesn't work. Python installed fine... but this... sob...
pip Install Error: don't could find version that satisfies the requirement tensor flow
1. While searching on Google, I went into the issue tracker on TensorFlow's official GitHub. The comments had similar cases, answers, and satisfied users, but it didn't work on my computer.
github.com/tensorflow/tensorflow/issues/39130
pip Install Error: don't could find version that satisfies the requirement tensorflow · Issue #39130 · tensorflow/tensorflow
hi, I have win10 and I have tried install through cmd tensorflow with: pip install tensorflow pip install tensorflow-cpu pip3 install --upgrade tensorflow All these pip gave me the same error: what...
github.com
2. I found the official TensorFlow site. I followed their guide, tried running it virtually, and retried everything step by step, but nothing worked.
www.tensorflow.org/install/pip?hl=ko#windows_1
Install TensorFlow with pip
TensorFlow 2 packages available: tensorflow - stable latest release with CPU and GPU support (Ubuntu and Windows); tf-nightly - preview build (unstable). GPU support is included for Ubuntu and Windows. Older versions of
www.tensorflow.org
3. While following along with the official site's content, I ran into some keywords I didn't know. Searching them I discovered there's also a package-based approach, as the link below shows. Since it's a more direct method, I decided to go with it. Unfortunately, the result at the link below isn't great. It installs, but it's a very old version and an old-school approach from old-timers.
stackoverflow.com/questions/64447565/installing-tensorflow-when-python-3-9-is-installed-on-path
Installing Tensorflow when Python 3.9 is installed on Path?
2 Versions of Python 3.9 and 3.8.6 are installed on Win 10. I Also want Tensorflow installed. But Pip recognises only Py 3.9 and hence does not installs tf locally. Is there a way out for this.
stackoverflow.com
4. In the process of searching, I learned several new things that aren't in books published in 2020 or earlier.
1) In the past - even just a few months ago - Python was only 32-bit, so running it virtually in a separate environment was the recommended approach. But starting from Python 3.8, the 64-bit version also runs stably on Windows. Going forward, unlike before, you no longer need to keep multiple Python versions around.
2) TensorFlow 2.x has been released. With the updates, the features that let you use NVIDIA GPUs have grown significantly. Of course, even on a computer without an NVIDIA card, the basic functions seem to all work (so far).
3) They say TensorFlow performs better with Anaconda. antilibrary.org/2378
If you care about performance, install TensorFlow with conda, not pip
Photo by Jeswin Thomas from Pexels It's better not to use pip anymore when installing Tensorflow. There are mainly 2 reasons why you should use conda instead of pip to install Tensorflow...
antilibrary.org
4) If the Python version and the Anaconda version aren't set up correctly, TensorFlow throws weird errors - stuff that works for everyone else doesn't work only for you. If you enjoy running into and solving all sorts of issues in your own environment, by all means do it your own way.
5-1) But if you're not someone working for a client, or if you don't want to waste a ton of time configuring an environment, I recommend uninstalling the Python you already have and installing Anaconda using the link below. The link below is the easiest and fastest install guide. Be sure to check it before you install. databonanza.tistory.com/3
[python] Anaconda install
Python is a programming language, and it is run through an Integrated Development Environment (IDE) that makes it easy to use. *An IDE is also called an editor. How to use Python...
databonanza.tistory.com
5-2) After installing Anaconda, you need to configure the interpreter (Interpreter) for whichever IDE you use. The two links below are helpful references.
018 [VSC] Using the conda environment in Visual Studio Code
#python #Visual_Studio_Code #VSC #conda #anaconda ...
blog.naver.com
Changing the Visual Studio Code Python interpreter path
Changing the Visual Studio Code Python (Python) Interpreter path. When working in Visual Studio Code, you sometimes need to change the Python version path. For example, when switching from Python 2.x...
gentlesark.tistory.com
5-3) And, though it doesn't really make sense... you also have to activate Anaconda itself. This part is a bit of a pain and can be really confusing. Otherwise, once your IDE has its interpreter configured and you try to run Python, you'll hit an error like the one below.
Python interpreter is in a conda environment, but the environment has not been activated.
- Related solution
Managing environments — conda 4.9.2.post29+86b4aea5 documentation
Activating environments is essential to making the software in the environments work well. Activation entails two primary functions: adding entries to PATH for the environment and running any activation scripts that the environment may contain. These activ
conda.io
6) As a side note, if you applied exactly the same steps as some blog or official site found through Google search but the result isn't what you expected, try closing and reopening the terminal you've been working in or the IDE you're using. It's only a small share, but - probably because it's a matter of configuration and installation - there are quite a lot of cases where it's just a sync issue.
Oh, for the terminal: in the search bar next to the Windows icon, type cmd -> when the terminal (Command Prompt) icon appears, right-click -> (since sudo~ doesn't always work...)Run as administrator
Good luck. ;D
