Pydev cannot import module that is available in Python IDLE - python

I tried to used pyodbc on a win10 computer and I use py 3.6. The module is installed with pip and I have no problem using this module in Python IDLE, however when I tried to use it in PyDev, it shows that the module cannot be resolved.
Not resolved module
However it has no problem to run directly from the console:
enter image description here
Does anyone has any clues? Thank you!

Related

Why is my python module not importing ON linux

As you can see I have imported the modules correctly using pip install. I googled a bit why the module was not imported and I realized I have to add it to PATH. I did that too but now there is a new error something about a syntax error
File "pygame/__init__.py",
self.reason = f"{exc_type.__name__}: {self.info}"
Is this because my chrome book can not run Pygame or is the problem something else?
Picture of my terminal with the error:
you need to run python3. to start python 3. Just running python starts python 2.7.
you have your installed packages in python 3.9 version while your python environment is 2.7, look for python3 executable and try with that version

Visual Studio Code isn't working most of the modules ex. (PIL,pygame etc)

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

Pycharm says no boto3 module even though I installed

Hii am using pycharm IDE, I wanted to use boto3 module and installed successfully. But my python program keep saying module boto3 not found ..I verified interpreter it all correct ...can some one suggest
Did you install it through pycharm or simply install it through your terimnal?

ImportError: No module named pygal

I'm using:
macOS Catalina 10.15.1
VSCode 1.40.2
Python 3.8.0 64-bit
I'm stalling pygal trough: pip3 install --user pygal and OK DONE.
But, when import pygal on VScode it return error like this-> ImportError: No module named pygal
Someone can help me? Look the 1st line of the code.
enter image description here
Please verify that Sublime uses the same Python interpreter that you installed Pygal in. I am not too familiar with macOS; Sublime might use the system interpreter by default, or a system-wide side-packages folder, rather than a local one. Start an interactive session by calling python3 in your console and try to import Pygal from there. If that works, your problem is likely related to Sublime using a different interpreter/env than what your installation was perfomed in.
Check if you installed the pygal interpreter and if you don't have it installed installed it. Happens to me all the time.

Error on importing pyvttbl

I installed pyvttbl using pip, but now python can't import pyvttbl lib as it gives me the error shown in the image below. It says that there's no module named as "base".
Is there anything wrong?!
I'm running on python 3.6.1
Sadly this python module you are trying to use it not compatible with python 3.6.1. i try to figure out what was going on and it wouldn't run for me i made sure everything was up to date then realized this module was last updated in 2013. and is not compatible with 3.6. how ever i did get it to work in python 2.7.8
hope this helped.

Categories