Running setup.py install for numpy: started Installing collected packages: pkgconfig, numpy, Cython Using legacy 'setup.py install' for numpy, since package 'wheel' is not installed. Using cached pkgconfig-1.5.5-p圓-none-any.whl (6.7 kB) Preparing metadata (setup.py): finished with status 'done' Ignoring numpy: markers 'python_version = "3.6"' don't match your environment Ignoring Cython: markers 'python_version = "3.9"' don't match your environment Ignoring numpy: markers 'python_version = "3.7"' don't match your environment $ source tensorflow-metal-test/bin/activateĪll of my excitement of having M1 is gone.having hard time to install tensor flowĮRROR: Command errored out with exit status 1:Ĭommand: /Users/tensorflow-metal-test/bin/python /private/var/folders/8s/t8kzlftn5x5c2mw37dd7lbs00000gn/T/pip-standalone-pip-j863mk96/ env_pip.zip/pip install -ignore-installed -no-user -prefix /private/var/folders/8s/t8kzlftn5x5c2mw37dd7lbs00000gn/T/pip-build-env-xlyfg9ik/normal -no-warn-script-location -no-binary :none: -only-binary :none: -i - 'numpy=1.14.5 python_version = "3.7"' 'Cython>=0.29 python_version = "3.9"' 'numpy=1.12 python_version = "3.6"' 'numpy=1.17.5 python_version = "3.8"' 'Cython>=0.29.14 python_version >= "3.8"' pkgconfig Here are few references that helped me to compile this article.I was able to install tensorflow-macos and tensrflow-metal on intel based iMac $ python3 -m venv tensorflow-metal-test I will keep posting about new things I experiment with this package. If you want to delete the enviroment from Anaconda, run this command in Anaconda Prompt. Now we are ready to run some basic code using Tensorflow package. Run the recently installed Spyder (tensorflow_demo). Otherwise, you can look into this folder.Ĭ:\Users\ \AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Anaconda2 (64-bit). So the best way to reach to the folder is search ‘Spyder’ in Search and right click to go to the folder. We need to run the recently installed Spyder. Now let’s test if Tensorflow is installed successfully through Spyder. pip install -ignore-installed -upgrade tensorflow Now we need to install Tensorflow and Spyder in this environment. It means you are inside this environment and can run or install any package independently. Once you run the above command your prompt should change. Once everything is installed, it will ask to “Activate it” activate tensorflow_demo Press ‘Y’ and let the new packages get installed. conda create -n tensorflow_demo python=3.5 We are creating a new environment names ‘tensorflow_demo’. Open “Anaconda Prompt” and run this code. Currently, I have Python 2.7 but let me show you how to do it. It should not matter which Anaconda or Python version you currently have, just follow my code below. And we create a new environment on Anaconda so that our existing codes which were written in different versions are not affected. As per my knowledge you need Python 3.5+ to install Tensorflow on Windows. How to access the new environment on Anaconda.Īnd many more. It is advised to create a new environment on Anaconda. Tensorflow is asking for specific Python version 3.5 or 3.6ģ. Though there are hundreds of articles and there is very less chance that my blog would appear in Google search like other articles, but it is worth sharing and writing.ġ. Also, one of my dearest friends keeps me pushing to write a blog at least once a week so hopefully this will help me. As I have faced all these issues and installed it successfully, I thought of writing about it. Finally, I could solve the issue and installed the package successfully but had to read hundreds of articles and followed more than 10-15 methods, installed Anaconda more than 7-10 times to get the right version. For people like me who has very less knowledge about Python or pip or conda, it was a nightmare. I had to use Keras library for Recurrent Neural Networks and found that I need to install Tensorflow to use Keras. We can easily access Tensorflow in Python to create Deep Learning models. TensorFlow is mainly developed by Google and released under open source license.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |