Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 5 months ago.
Improve this question
I am trying to import scikit-learn version 1.1.2 from my environment, however it imports another version (0.24.2) when I try.
The code is below:
import sklearn
print(sklearn.__version__)
-------
output: 0.24.2
I checked my environment from both pip commands and site-packages. I have the 1.1.2 version of scikit-learn. Tried to uninstall and install it again, doesn't work. When 1.1.2 version is not installed, python still imports 0.24.2 version from somewhere else I think.
How to import 1.1.2 version, and delete 0.24.2 version if I don't need it?
Also, how will I know if I need that 0.24.2 version?
I restarted my kernel and it is fixed. Now, I can import 1.1.2 version. I should have probably restart my kernel if I installed any libraries.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 months ago.
Improve this question
I have cudatoolkit and cudnn packages installed in my anaconda environment but tensorflow does not recognize my GPU device. In some web sources I have seen that you can use Cuda by only installing necessary anaconda packages. So, what I would like to know is that do I have to install NVIDIA Cuda from its website to be able to use it or would it lead to conflicts?
I think something wrong with your environment variables. I can recommend these steps:
Create a new environment
Install required packages:
conda install -c conda-forge cudatoolkit=11.2 cudnn=8.1.0 python3 -m pip install tensorflow
Verify the installation, first import tensorflow
python3 -c "import tensorflow as tf;
Then check the GPU
print(tf.config.list_physical_devices('GPU'))"
This should be work
`
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 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
My python version is python3.6.5. I want to install pycrypto,but there is some errors to install it.So did anyone know how to solve the problen. Thank you very much.
You can use pycryptodome instead.
PyCryptodome is a fork and is even importable with the same name.
PyCryptodome is a self-contained Python package of low-level
cryptographic primitives.
It supports Python 2.6 or newer, all Python 3 versions and PyPy.
The installation procedure depends on the package you want the library
to be in. PyCryptodome can be used as:
an almost drop-in replacement for the old PyCrypto library.
[...]
PyCryptodome is a fork of PyCrypto.
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 7 years ago.
Improve this question
I'm trying to install
scipy-0.16.1-cp33-none-win_amd64.whl
I got the error:
scipy-0.16.1-cp33-none-win_amd64.whl is not a supported wheel on this platform.
Following the advice from this question, I've tried changing 'win_amd64' to 'win32' (which doesn't work) and to 'any'. After changing the file name and running
pip install scipy-0.16.1-cp33-none-any.whl
I get:
Unpacking C:\python33\scipy-0.16.1-cp33-none-any.whl
Installing collected packages: scipy
Successfully installed scipy
Cleaning up...
However, scipy doesn't seem to be installed anywhere. Running python and trying
>>> import scipy
gives an error. I'm very confused and would appreciate help.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I'm a Mac newbie. I manually downloaded and installed Python 2.7.9 from the .pkg from python.org. I've come to realize that I should be installing software using package management like Macports or Homebrew as much as possible. My question is: how can I uninstall the Python version that I just installed? I'm hesitant to just delete anything out of my Applications folder for fear of breaking vendor Python.
I found this post How to uninstall Python 2.7 on a Mac OS X 10.6.4? but I'm not sure if I can just follow these same instructions for my purposes. Ideally I'd like to uninstall Python 2.7.9 and then reinstall using Macports or Homebrew. Thanks for any advice you can give!