Skip to content

Python Fix Issues

  • Privacy Policy
  • Terms and Conditions of Use
  • Contact Us

python-packaging

Fix Python – “pip install –editable ./” vs “python setup.py develop”

September 29, 2022 by Aky Patel

Is there any significant difference between
pip install -e /path/to/mypackage

and the setuptools variant?
python /path/to/mypackage/setup.py develop

….

Categories python Tags pip, python, python-packaging, setuptools

Fix Python – What is the easiest way to remove all packages installed by pip?

July 29, 2022 by Aky Patel

I’m trying to fix up one of my virtualenvs – I’d like to reset all of the installed libraries back to the ones that match production.
Is there a quick and easy way to do this with pip?
….

Categories python Tags pip, python, python-packaging, virtualenv

Fix Python – How do I import other Python files?

July 28, 2022 by Aky Patel

How do I import files in Python? I want to import:

a file (e.g. file.py)
a folder
a file dynamically at runtime, based on user input
one specific part of a file (e.g. a single function)

….

Categories python Tags python, python-import, python-module, python-packaging

Fix Python – What is setup.py?

July 23, 2022 by Aky Patel

What is setup.py and how can it be configured or used?
….

Categories python Tags pypi, python, python-packaging, setup.py

[Fixed] python – What is __init__.py for?

July 19, 2022 by Aky Patel

What is __init__.py for in a Python source directory?
….

Categories python Tags module, package, python, python-packaging

Recent Posts

  • Fix Python – String formatting in Python 3
  • Fix Python – extracting days from a numpy.timedelta64 value
  • Fix Python – Mocking boto3 S3 client method Python
  • Fix Python – How to kill a while loop with a keystroke?
  • Fix Python – How to rename a virtualenv in Python?

anaconda arrays class csv dataframe datetime dictionary django django-models exception file flask function ipython json jupyter-notebook list list-comprehension logging macos matplotlib module numpy oop pandas performance pip plot python python-2.7 python-2.x python-3.x python-import python-requests regex scipy sorting sqlalchemy string syntax tuples unicode unit-testing virtualenv windows

FixPython is a community of Python programmers. You can ask programming questions related to Python or find answers for thousands of questions which has already been answered. When new question is asked, our volunteer community leaders will search for 100% working solutions on other communities such as Stackoverflow, Stack Exchange, Reddit etc. and tests them personally. Finally the working solution is posted on our website licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0 . You will receive an email notification when your question is been answered.

© 2023 Python Fix Issues • Built with GeneratePress