Python works in PyCharm but not from terminal

后端 未结 7 804
你的背包
你的背包 2020-12-31 03:06

I recently figured out how to import modules for unittesting in python. As a solution to this, I use:

sys.path.append(os.path.abspath(os.path.join(os.path.di         


        
7条回答
  •  悲&欢浪女
    2020-12-31 03:45

    I would recommend trying out $ pip install . in your source directory. This will install your own packages for your project.

提交回复
热议问题