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 1 year ago.
Improve this question
I am using Pycharm IDE. I am doing a project that requires an older version of Tensorflow. I tried installing in from within pycharm marketplace using specified versions, but it says that there is no matching distributions found. So, I downloaded Tensorflow v1.8 sourcecode from Github as a zip. Now I want to install it in pycharm. How do I do that?
Having an IDE with things like a 'marketplace' is nice in theory, but you'll always end up having to resort to the commandline. Try to open the Terminal in PyCharm, it should activate with the python environment of your project. Then install tensorflow 1.8 with pip install tensorflow==1.8.0
For the latest version
pip install tensorflow
For the previous ones
pip install tensorflow==THE VERSION YOU WANT
pip install tensorflow==1.5
Or with pyCharm
Preferences> Project: PROJECT NAME> Python interpreter
Click on the + symbol at the top left and look for the package you want to install
(At the bottom right you can also check the Specify version box and choose the version you prefer)
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 7 days ago.
Improve this question
I can't import libraries in python that I have installed using pip
as shown here.
Even other libraries such as PySimpleGui and PyGame don't work when I try to import them.
I have tried uninstalling and reinstalling the libraries and I am sure they are installed on my computer.
To sort this out, you need to establish two things:
where you (i.e. pip) installed the packages, and
where Python is looking for them
You can find where pip installed a package with:
pip show PACKAGE # e.g. pip show flask
Obviously, if you install using pip3 install flask, you will need to use:
pip3 show flask
Now you need to see which Python you are running and where it is looking for its packages:
import sys
print(sys.executable) # show which Python we are running
print(sys.path) # show where it is looking for packages
Hopefully you will see you are not installing into the Python interpreter you are using.
I think you might have installed them under a different folder or space than what you need. For example the code below installs the library at your current space, while simply pip3 install pygame might be somewhere else.
python3 -m pip3 install pygame
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 1 year ago.
Improve this question
I installed pywhatkit, and it's stored along with other packages in my python3.8 file. However, I am not able to import it to VS code or any other IDEs. I tried installing tkinter. But I facing the same issue again. What should I do ?
Sometimes VS Code does this. You should install a library, after that just restart VS Code and the problem should be solved.
However, if the problem still occurs, it will be due to the Python version.
You are using Python 3, the issue is most likely that when you installed pywhatkit and tkinter you used the pip install library command, which will only install them for Python 2. To install the libraries for Python 3 just use the pip3 install library command in place of pip.
Make sure you have selected the right python interpreter. The Status Bar always shows the current interpreter:
Inspect whether you can find the packages you want to import in this environment.
Inspect where the packages you have installed through pip: pip show xxx.
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 have downloaded WinPython 3.8.5 I can see the folder inside is python-3.8.5.amd64 which is good but when I stroke python --version (in WinPython Scripts folder) it throws me 2.7 :(
Then when I pip install a module I have this warning :
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
In Program Files I have a folder : Python.2715
What's the problem here ? Help please, how can I have Python 3 with WinPython ?
Put the WinPython folder containing python.exe earlier to your PATH environment variable than other Python folders. Verify the version by running python -V.
To install packages, use python -m pip install ... instead of pip install .... (It looks like pip install tries to use the pip command from another version of Python on your PATH. Maybe the direct reason for this is that your WinPython folder doesn't contain the pip command or the relevant subfolder is not on your PATH. To fix pip install, you may want to reinstall WinPython, and then report a bug to the WinPython maintainers.)
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 9 years ago.
Improve this question
I am trying to use a python module for using Mega and it requires me to have pycrypto installed. I tried using both pip and easy_install to install it but I have had no luck. With pip I am getting an error like this post. I followed the link from the answer in that post, but I really have no idea where to go from there. I am using Windows 7.
Pycripto is C-based extension. You can compile PyCrypto on Windows, here is a step-by-step guide.
Alternatively, you can install compiled binaries.
Here is extensive source of compiled python packages for Windows:
Unofficial Windows Binaries for Python Extension Packages
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I am trying to run a Python script on a Windows 7-64 bit machine using Cygwin. I can't get the newest version of Python installed in this environment.
Question:
How do I uninstall Python 2.6
Which Python package should I use for Cygwin?
To uninstall the Python interpreter (or any other package) from Cygwin:
Run the setup.exe file (the one you downloaded for installing Cygwin)
Make sure the installation folder matches your Cygwin location
On the package selection screen, find the package you want to uninstall (here python)
Change its state from keep to uninstall by clicking on it 3 times
Click next to begin the uninstallation
At the moment, Python 2.7 has not been ported to Cygwin. The latest Python 2 version is 2.6.8-2.
However, Python 3.2 has been ported, so you should check if your script is compatible with it.
You can have Python 2 and 3 installed at the same time on Cygwin – the first can be fired with the classic python command, and the latter with python3.