I am having trouble when using Pushbullet in my VS-Code project, it's having a problem with importing pushbullet. I am using Python 3.8.2 on Windows 10, Python 2.7 is also installed, there are two types of error and I have no clue at all
But when I try it manually in python 3.8.2 IDE, it works perfectly. Can someone help me to fix this issue
I have looked through some of the similar post, saying this is the PATH problem and try to uninstall numpy , I also couldn't uninstall numpy because of having no permission problem.
Related
I'm having this problem when i try to import numpy or any other modules of python on PyCharm or Visual Studio Code.
here's some things that i tried:
When i try to import direct via Python CLI the import works perfectly without any changes but when i use Visual Studio Code or Pycharm this problem happens even using their CLI, i tried the flatpak and distribution version of Pycharm and the problem continues.
I tried to change python interpreter of VSC using "commmand palette Python: Select interpreter" and the problem still happening
I installed Fedora workstation 37 on a VM only installing Pip, Numpy, VSC Flatpak via FlatHub and IntelliCode extension and the problem continues
Can someone help me?
EDIT: I find the problem, the reason why i was having this problem is because the VSC Flatpak isn't well integrated with the system therefore not able to acess SDKs of my host system.
To anyone having similar problem you can see how to solve here.
I have a problem when I try to convert a .py file to .exe. I get the ModuleNotFoundError error, specifically with the playsound module. I've made sure to have it installed (with pip list) and, just in case, I've tried uninstalling it and installing a more stable version following the advice of a forum and it's still the same. The program works perfectly but when converting it to .exe (using auto-py-to-exe) it tells me that it can't find the playsound module. Has anyone had the same problem?
Fixed! The problem was that I had multiple versions of python installed and the modules were conflicting.
First of all, thank you very much for reading.
Some days ago I installed Python3 (3.6.9) and opencv 3.4.10 in an Ubuntu 18.04 desktop system. I needed to downgrade opencv to 3.4.0 after some compilation problems (not related to python3), so I removed opencv 3.4.10 by using the sudo make uninstall order, and tested that it was uninstalled as if I tried importing it in python I got the following error:
libopencv_hfs.so.3.4: cannot open shared object file: no such file or directory
I thought installing 3.4.0 version would solve the problem but now that it's installed, when I try to import it in a python3 script I am getting the same error. I think this error must be related to the way python3 references the import files. I think it's still pointing to the uninstalled version of 3.4.10, but I can not find the way to change it.
Could someone please help me with this issue?
Thank you very much.
Andrés.
Using a virtualenv would resolve the issue. Check this out on how to use : Installing packages using pip and virtual environments
Once you're done installing requirements in the virtualenv, run your python script there only to use the specified versions.
Hello again and thank you for you answers.
I have been able to solve the problem. Thought I had uninstalled the previous version of opencv, there was still a cv2.sofile in my python virtual environment path, and it had not been replaced by the new cv2.so, so python tried to import the old one instead of the new one.
The old cv2.so (the one that was referenced when I imported cv2 in python) was here --> ~/.virtualenvs/cv/lib/python3.6/site-packages/cv2.so
The cv2.so I wanted to be used when imported was here --> /usr/local/lib/python3.6/site-packages/cv2/cv2.so so I replaced the one in the virtual environment path with the one in the lib directory and that did the trick :)
when I try to import PIL it's says "no module named PIL" error coming up. I did install PIL and try several things same thing happen with pygame earlier. please help me out.
I'm using MacOs Catalina 10.15.3
VS Code
Python 3.7.4
you need to select the right python environment, check Using Python environments in VS Code
I have got a strange issue.
I am now using graphlab/numpy to develop a project via Pycharm 5. OS is Mac OS 10.11.5. I created a p2.7 virtual environment for the project. Programme runs well. But after I install ipython, I can no longer import graphlab and numpy correctly.
Error message:
AttributeError: 'module' object has no attribute 'core'
System keeps telling that attribute ‘core' and 'connect' are missing. But I am pretty sure that they can be found in graphlab/numpy folders, and no duplicates.
Project runs all right in terminal. Now I have to uninstall ipython. Then everything is ok again.
Please kindly help.
Please remember that console applications and GUI application do not share the same environment on OS X.
This also means that if you install a Python package from the console, this would probably not be visible to PyCharm.
Usually you need to install packages using PyCharm in order to be able to use them.
Upgrading pip itself then reinstalling worked for me