How do I create a python package in pycharm?



How do I create a python package in pycharm?..

Answer / Juhi Verma

To create a Python package in PyCharm, follow these steps:
1. Create a new directory for your package.
2. Inside this directory, create a `__init__.py` file.
3. Open PyCharm and open the project from the package's directory.
4. In the Project view, right-click on your package name and select 'Mark Directory as -> Sources Root'.
5. Package is now ready to be populated with modules.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Python Interview Questions

Does python have inheritance?

1 Answers  


What are python slots?

1 Answers  


Write a program to reverse the string?

1 Answers  


Is it necessary to know c to learn python?

1 Answers  


In python, how do I check if a list is empty?

1 Answers  


What are the differences in the deep and shallow copy?

1 Answers  


Explain python list comprehension?

1 Answers  


Can we do pattern matching using python?

1 Answers  


What are the 4 data types in python?

1 Answers  


Why does it say none in python?

1 Answers  


Does apple use python?

1 Answers  


Tell me what is the difference between list and tuple?

1 Answers  


Categories