In centos I did pip install pandas. Everything looked successful.
However when I import pandas I get:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named pandas
Not sure how to fix. Also sys.modules is also showing no pandas.
Related
I tried to simplify my code with the tool Custom-Widgets, I want to custom a animated menu, after the installation of Custom-Widgets from https://github.com/KhamisiKibet/QT-PyQt-PySide-Custom-Widgets
I try to prove it with the demo:
from Custom_Widgets.ProgressIndicator import test
test.main()
but It doesn't find the package of this.
I had this output:
Traceback (most recent call last):
File "c:\Users\user\Desktop\try\provePyQT.py", line 1, in <module>
import Custom_Widgets
ModuleNotFoundError: No module named 'Custom_Widgets'
What can I do with this error?
I recently rearranged some folders around and a python file I used to run is no longer working. When I try to run the file I get:
Traceback (most recent call last):
File "twitter_stream.py", line 9, in <module>
from tweepy import Stream
ImportError: No module named tweepy
I don't understand why I no longer have tweepy installed because I just had it When I do a simple 'pip3 install tweepy' I get:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.5/bin/pip3", line
7, in <module>
from pip import main
ImportError: cannot import name main
I'm not sure what happened here. Any help would be greatly appreciated
I want to use ATD module in python, I downloaded it throught the command line pip install ATD, and it was Successfully installed. But when I wanna use it in python, it says that the module is not found, does anyone know what's wrong with it, and how can i fix it?
>>> import ATD
Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
import ATD
ModuleNotFoundError: No module named 'ATD'
Is someone familiar with these package?
I tried easy install and many things I saw in imports problems solution
>>> import translate
output:
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import translate
File "C:\Python27\lib\site-packages\translate\__init__.py", line 8, in <module>
from .translator import *
File "C:\Python27\lib\site-packages\translate\translator.py", line 13, in <module>
import requests
ImportError: No module named requests
Moreover, in the directory of the package there is a test file.
I tried to run it but I got this:
Traceback (most recent call last):
File "C:\Python27\Lib\site-packages\translate\tests\test_translator.py", line 10, in <module>
from ..translator import translator
ValueError: Attempted relative import in non-package
How have you installed py-translate.
It requires: requests
My advice is pip install requests (or easy_install requests)
Their latest release is 1.0.2, but also goes by 1.0.3.
Pip install the package, don't just download the archive as you will miss the dependancies
I'm trying to use the HDFStore command in Pandas and although I have PyTables installed, when I run the command:
import pandas as pan
filename=('testfile.h5')
store=pan.HDFStore(filename)
I get the following error:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\dashamstyr\Anaconda\lib\site-packages\pandas\io\pytables.py", line 390, in __init__
raise ImportError('HDFStore requires PyTables, "{ex}" problem importing'.format(ex=str(ex)))
ImportError: HDFStore requires PyTables, "cannot import name blosc_get_complib_info_" problem importing
And when I run the command:
import tables
I get this error:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\dashamstyr\Anaconda\lib\site-packages\tables\__init__.py", line 84, in <module>
from tables.utilsextension import (
ImportError: cannot import name blosc_get_complib_info_
I using the Anaconda Python distribution for windows 7 64-bit. I have the following versions of relevant packages (I think they're all up to date):
Python 2.7.9
PyTables 3.2.0
HDF5 1.8.15.1
Cython 0.22.1
numexpr 2.4.3
Pandas 0.16.2