Giter VIP home page Giter VIP logo

Comments (9)

jgabriel1 avatar jgabriel1 commented on September 3, 2024 1

Anyways, this really short tutorial should help with setting up the virtualenv on Mac:
https://gist.github.com/pandafulmanda/730a9355e088a9970b18275cb9eadef3

from magic-link.

felipemarkson avatar felipemarkson commented on September 3, 2024 1

This poetry definitely looks cleaner than installing through pip. Does it eliminate the need for a virtualenv though? @felipemarkson

Actually, Poetry uses a virtualenv to manager the dependencies. Poetry has pip freeze equivalent to a production environment. However, Poetry helps a lot in development environment because it is separate the product dependencies and developer dependencies, like npm or yarn, and resolve the dependencies requirements.

If not, in this specific case, it's just another way of using $ pip freeze > requirements.txt whenever you install a new dependency.

Pip has not a good dependencies manager when the dependencies need a specific version, and the project can be a mess when others developers change the dependencies.

An alternative to Poetry is Pipenv, other dependency manager.

from magic-link.

jgabriel1 avatar jgabriel1 commented on September 3, 2024 1

Ok, got it! Just to be clear, I also think it's a good idea to use a more robust package manager than pip. It's just that I thought the main concern of this issue was to help people set up the venv itself.

An alternative to Poetry is Pipenv, other dependency manager.

I've heard of pipenv. If this is the case then it's an all-in-one thing as well.

Thanks for the tip on poetry though, will definitely check it out for myself.

from magic-link.

jgabriel1 avatar jgabriel1 commented on September 3, 2024

Agreed. It would be best practice to work inside an isolated virtualenv and also making a requirements.txt file containing all the dependencies in the repo.

from magic-link.

jbarbosaamancio avatar jbarbosaamancio commented on September 3, 2024

same this @jgabriel1

from magic-link.

ArthurFleischman avatar ArthurFleischman commented on September 3, 2024

@jbarbosaamancio sorry, typo error, it would be "same as ".
hope i helped.

from magic-link.

felipemarkson avatar felipemarkson commented on September 3, 2024

We can use Poetry as the package and dependencies manager. See #16 and my PR #17.

from magic-link.

jgabriel1 avatar jgabriel1 commented on September 3, 2024

This poetry definitely looks cleaner than installing through pip. Does it eliminate the need for a virtualenv though? @felipemarkson

If not, in this specific case, it's just another way of using $ pip freeze > requirements.txt whenever you install a new dependency.

from magic-link.

felipemarkson avatar felipemarkson commented on September 3, 2024

In a small project, without others developers pip works fine.
But if you need a development environment that can be used by others developers, a dependency manager is essential.

from magic-link.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.