Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
When I'm importing TensorFlow with Spyder as so:
import tensorflow as tf
I then face the following error:
ModuleNotFoundError: No module named 'tensorflow'
How can I overcome this issue?
Since you plan to use tensforflow with Anaconda, you need to install it through Anaconda. It is advisable to do this as follows:
C:> conda create -n tensorflow
C:> activate tensorflow
C:> pip install --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-1.0.1-cp35-cp35m-win_amd64.whl
It is recommended you create a virtual environment as shown above as this makes managing different versions of Python easier. All packages you install (in this case Tensorflow) will become available whenever you activate this virtual environment, and they will not conflict with other versions of Python you may have.
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 days ago.
Improve this question
I am using Anaconda.
After installing the Python package arcade version 2.6.17, I tried to install the latest version of pillow (9.4.0)
I got an error that says:
WARNING: Ignoring invalid distribution -oogletrans (c:\users\user\anaconda3\lib\site-packages)
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
arcade 2.6.17 requires pillow~=9.3.0, but you have pillow 9.4.0 which is incompatible.
I know that this means that the two versions are incompatible, but how can I resolve the issue?
To deal with package conflicts you should use separate environments. They are isolated from one another and can contain different sets and/or versions of packages. It's a good practice to create a separate environment for each project you work on.
# create a new clean environment for the project
conda create -n my_new_shiny_env
# activate the newly created environment
conda activate my_new_shiny_env
# install the arcade package with pip
pip install arcade
pip will manage the arcade's dependencies, while a new clean environment will ensure that there are no other incompatible versions of such dependencies.
If, at the same time, you need a newer version of pillow, that arcade doesn't like, you can create another environment and install it there.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I created a small Python project using a project template. Now I would like to configure the project to be locally installable.
When I run the command:
$ python3.8 -m pip install fdroid_build_checker
I get the following error:
ERROR: Could not find a version that satisfies the requirement fdroid_build_checker (from versions: none)
ERROR: No matching distribution found for fdroid_build_checker
A future step would be to configure the project to be published as a small command line tool.
Your command is searching for the package in PyPi, which won't work because you haven't published the package there.
To install a local package, you should be able to just run pip install path_containing_fdroid_build_checker/froid_buildchecker
You'll have to make sure that your package contains a setup.py file (1) in order for pip to build a wheel and install it successfully.
See https://stackoverflow.com/a/41537134/2741222
1 - https://packaging.python.org/tutorials/packaging-projects/#creating-setup-py
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I do pip install pygame and it says that I have it installed, but for python 2.7 so I do pip3 install pygame and it doesn't work, instead it gives some a bunch of errors. If you have an answer please help!
When installing it I would make sure you are first running python 3 in your terminal or command line before putting in your install command. I know there is a dev version out.
pip install pygame==2.0.0.dev6
If you're on mac you might try pip3 instead of just pip.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 years ago.
Improve this question
Why cannot install by input "pip install xxxx"in cmd,
only can install by input "python -m pip install xxxx"?
//problem solved , but dont know why
example.png
You can use pip install directly after adding C:\Program Files\Python37\Scripts to the environment PATH variable in windows.
Note: The path C:\Program Files\Python37\Scripts is where pip.exe is installed or present on your computer based on Pythong version.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 4 years ago.
Improve this question
I've been trying to downgrade the version of Python in Anaconda as it doesn't support TensorFlow and I get the following error(s):
screenshot of the error
You can create a new environment for your experiments:
conda create -n new_environment python=3.5
Or install anaconda with another python version (http://docs.anaconda.com/anaconda/user-guide/faq/#how-do-i-get-the-latest-anaconda-with-python-3-5)
From your error output it is clear there is a dependency conflict:
backports.os requires python 2.7.
Simply uninstall backports.os like this:
conda uninstall backports.os
And then downgrade Python:
conda install python=3.5
The fact that you're on Python 3.7, but backports.os is still requiring Python 2.7 is proof something has gone wrong with your setup. If you still require backports.os, simply reinstall it when Python is downgraded: conda install backports.os.