Python Forum
importing packages to pycharm
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
importing packages to pycharm
#1
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.
Reply
#2
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.
Reply
#3
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
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Importing Packages/Modules Upandon 7 4,567 Mar-28-2018, 04:15 AM
Last Post: Upandon

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020