Python Forum
How to add python library to Spyder
Thread Rating:
  • 2 Vote(s) - 2.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to add python library to Spyder
#2
I guess if you place your xxx.py file in the working directory it will work.

import os
os.getcwd()

Otherwise change the working directory to the directory where your file is placed.
os.chdir('C:\xxx')
Reply


Messages In This Thread
How to add python library to Spyder - by awa5114 - Apr-28-2017, 06:29 AM
RE: How to add python library to Spyder - by klllmmm - Apr-28-2017, 10:03 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Using SK Learn Library with Spyder johnfa 3 15,442 Jun-03-2021, 11:45 AM
Last Post: jefsummers
  How can I make a short-key in Spyder (Python IDE)? moose 3 2,738 Nov-02-2020, 12:13 PM
Last Post: jefsummers
  How can I scroll over my data points when creating plots in Python? (I'm using Spyder moose 0 1,623 Nov-02-2020, 07:18 AM
Last Post: moose
  Python coding in Spyder IDE fl4m3 0 2,483 Sep-26-2020, 07:03 PM
Last Post: fl4m3
  python variable issues - using spyder and opencv Afrodizzyjack 5 5,855 Jun-19-2018, 09:46 AM
Last Post: gontajones
  Python-Spyder error opening integrak20 0 3,685 Oct-20-2017, 05:44 AM
Last Post: integrak20
  Issue in launching spyder that was installed using pip install on Python 3.6.1 python300 6 11,106 Jun-02-2017, 10:44 PM
Last Post: python300
  PyInstaller, how to create library folder instead of library.zip file ? harun2525 2 4,860 May-06-2017, 11:29 AM
Last Post: harun2525

Forum Jump:

User Panel Messages

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