Python Forum
importing packages to pycharm - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Data Science (https://python-forum.io/forum-44.html)
+--- Thread: importing packages to pycharm (/thread-8783.html)



importing packages to pycharm - robinhoodjr - Mar-07-2018

I am new to packages use in python. I am using pycharm and installed pandas and few other packages from the project interpreter window but i am having trouble importing those packages.[Image: open?id=1sHmN-Q9GqX3vV4oMAezaCn5tKBMpV_yj]

If anyone can help, thank you.


RE: importing packages to pycharm - j.crater - Mar-07-2018

This is no problem, it is just a warning message to tell you that the imported module is not (yet) used in your script. It is a very handy tool really and you will notice it does same e.g. for variables.
As soon as you will add a line of code that uses sys or other modules, their highlighting colour will change and warning gone.


RE: importing packages to pycharm - sparkz_alot - Mar-07-2018

I will add that it is not a good idea to use a space within the file name. Even though Windows File Explorer and programs will recognize it, the command terminal will not. You will get an error such as
Error:
C:\Python>panda try.py 'panda' is not recognized as an internal or external command, operable program or batch file.
If you are going to use multiple word file names, it's better to use an underscore i.e. panda_try.py