Can't use pip to install packages

This page summarizes the projects mentioned and recommended in the original post on /r/NixOS

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • poetry2nix-example

    Playing around with poetry2nix to learn more about Nix for Python development

    poetry2nix sorta works (example) but I wish pip in a venv or virtualenv (or even with just --user) also "just worked" without having to introduce dynamic linking explanations to the ML developer.

  • nix-direnv

    A fast, persistent use_nix/use_flake implementation for direnv [maintainer=@Mic92 / @bbenne10]

    Here is my flake: https://gitlab.inria.fr/robotlearn/rl-audio-nav/-/blob/master/flake.nix And here is the .envrc file that I use with nix-direnv: https://gitlab.inria.fr/robotlearn/rl-audio-nav/-/blob/master/.envrc

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

  • mach-nix-template

    Simple and straight-forward way to create python environments using PyPi in nix

    Hey, I had the same issues as you. Therefore I created the following nix flake: https://github.com/Quoteme/mach-nix-template

  • distrobox

    Use any linux distribution inside your terminal. Enable both backward and forward compatibility with software and freedom to use whatever distribution you’re more comfortable with. Mirror available at: https://gitlab.com/89luca89/distrobox

    I do the opposite, with Distrobox on NixOS.

  • nixshells

    Frequently used nix shells for Python, CUDA and more.

    I use this setup for my python development : https://github.com/shahruk10/nixshells

  • devbox

    Instant, easy, and predictable development environments

    My recommendation would be to use poetry (https://python-poetry.org/) to setup your python environment. Use nix to install poetry, and then poetry to manage your python project – under the hood it'll create a virtual environment in your project directory and get around the immutable nature of the nix store. I'm the developer of devbox (https://github.com/jetpack-io/devbox) and a lot of our users that use python, have had success with that approach.

  • Poetry

    Python packaging and dependency management made easy

    My recommendation would be to use poetry (https://python-poetry.org/) to setup your python environment. Use nix to install poetry, and then poetry to manage your python project – under the hood it'll create a virtual environment in your project directory and get around the immutable nature of the nix store. I'm the developer of devbox (https://github.com/jetpack-io/devbox) and a lot of our users that use python, have had success with that approach.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts