# Installing a Python Package with Flox that has a Dependency Not Included in the set of Nix Python Packages

**URL:** <https://discourse.flox.dev/t/installing-a-python-package-with-flox-that-has-a-dependency-not-included-in-the-set-of-nix-python-packages/940>\
**Category:** Help\
**Created:** [August 12, 2024, 1:23am UTC](https://discourse.flox.dev/t/installing-a-python-package-with-flox-that-has-a-dependency-not-included-in-the-set-of-nix-python-packages/940 "2024-08-12T01:23:09Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![max](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.flox.dev/max/32/680_2.png) [@max](https://discourse.flox.dev/u/max)\
**Post date:** [August 12, 2024, 1:23am UTC](https://discourse.flox.dev/t/installing-a-python-package-with-flox-that-has-a-dependency-not-included-in-the-set-of-nix-python-packages/940/1 "2024-08-12T01:23:09Z")

</div>

I am trying to install the `pinecone-client` Python package for Python3.12. When I ran `flox install python312Packages.pinecone-client` I ran into the following error.

```auto
Successfully built pinecone_client-4.1.1-py3-none-any.whl
Finished creating a wheel...
evaling implicit 'postBuild' string hook
/build/pinecone_client-4.1.1/dist /build/pinecone_client-4.1.1
Unpacking to: unpacked/pinecone_client-4.1.1...OK
Repacking wheel as ./pinecone_client-4.1.1-py3-none-any.whl...OK
/build/pinecone_client-4.1.1
Finished executing pypaBuildPhase
@nix { "action": "setPhase", "phase": "pythonRuntimeDepsCheckHook" }
Running phase: pythonRuntimeDepsCheckHook
Executing pythonRuntimeDepsCheck
Checking runtime dependencies for pinecone_client-4.1.1-py3-none-any.whl
  - pinecone-plugin-interface not installed

```

It appears that `pinecone-plugin-interface` could not be installed because it’s not included in Nix, but I can see it on pypi ([pinecone-plugin-interface · PyPI](https://pypi.org/project/pinecone-plugin-interface/)). I know I can probably resolve this by using pip/poetry/pdm, but is there a better way to solve this?

---

<div class="post-metadata">

**Author:** ![ghudgins](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.flox.dev/ghudgins/32/588_2.png) [@ghudgins](https://discourse.flox.dev/u/ghudgins)\
**Post date:** [August 12, 2024, 1:27pm UTC](https://discourse.flox.dev/t/installing-a-python-package-with-flox-that-has-a-dependency-not-included-in-the-set-of-nix-python-packages/940/2 "2024-08-12T13:27:49Z")

</div>

we’re taking a look! I can reproduce this

---

<div class="post-metadata">

**Author:** ![ghudgins](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.flox.dev/ghudgins/32/588_2.png) [@ghudgins](https://discourse.flox.dev/u/ghudgins)\
**Post date:** [August 12, 2024, 1:53pm UTC](https://discourse.flox.dev/t/installing-a-python-package-with-flox-that-has-a-dependency-not-included-in-the-set-of-nix-python-packages/940/3 "2024-08-12T13:53:01Z")

</div>

as a workaround, you can install this by flake reference…but it’s 4.1.0…there does seem to be problems with this package upstream in nixpkgs:

`flox install 'github:nixos/nixpkgs?ref=nixos-24.05#python312Packages.pinecone-client'`

edit: yeah, something is specifically wrong with that version in nixpkgs. also works: `flox install python312Packages.pinecone-client@python3.12-pinecone-client-4.1.0`

---

<div class="post-metadata">

**Author:** ![zmitchell](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.flox.dev/zmitchell/32/639_2.png) [@zmitchell](https://discourse.flox.dev/u/zmitchell)\
**Post date:** [August 12, 2024, 3:25pm UTC](https://discourse.flox.dev/t/installing-a-python-package-with-flox-that-has-a-dependency-not-included-in-the-set-of-nix-python-packages/940/4 "2024-08-12T15:25:29Z")

</div>

Hey Max, thanks for taking a look. You found a rare package that’s broken in nixpkgs!

---

<div class="post-metadata">

**Author:** ![zmitchell](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.flox.dev/zmitchell/32/639_2.png) [@zmitchell](https://discourse.flox.dev/u/zmitchell)\
**Post date:** [September 2, 2024, 6:12pm UTC](https://discourse.flox.dev/t/installing-a-python-package-with-flox-that-has-a-dependency-not-included-in-the-set-of-nix-python-packages/940/5 "2024-09-02T18:12:30Z")

</div>

Hey Max I just did some poking around re: your Jupyter issue and I think we just aren’t setting the `JUPYTER_PATH` variable: [Common Directories and File Locations — Jupyter Documentation 4.1.1 alpha documentation](https://docs.jupyter.org/en/latest/use/jupyter-directories.html#envvar-JUPYTER_PATH)

If you want to poke around yourself, you may try setting that variable in your manifest (I don’t actually know where notebook extensions get installed e.g. `site-packages` or somewhere else). We can probably take a look ourselves in the near future, but if you just wanted to do some research yourself, that’s where I would start.

---

<div class="post-metadata">

**Author:** ![zmitchell](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.flox.dev/zmitchell/32/639_2.png) [@zmitchell](https://discourse.flox.dev/u/zmitchell)\
**Post date:** [September 2, 2024, 6:13pm UTC](https://discourse.flox.dev/t/installing-a-python-package-with-flox-that-has-a-dependency-not-included-in-the-set-of-nix-python-packages/940/6 "2024-09-02T18:13:50Z")

</div>

The `$FLOX_ENV` variable points at the directory that contains all the executables, libraries, etc for your environment, and you should have a symlink to that same path in your `.flox/run` directory.

---

<div class="post-metadata">

**Author:** ![max](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.flox.dev/max/32/680_2.png) [@max](https://discourse.flox.dev/u/max)\
**Post date:** [September 2, 2024, 6:26pm UTC](https://discourse.flox.dev/t/installing-a-python-package-with-flox-that-has-a-dependency-not-included-in-the-set-of-nix-python-packages/940/7 "2024-09-02T18:26:28Z")

</div>

> [@zmitchell](#):
>
> e can probably take a look ourselves in the near future, but if you just wanted to do some research yourself, that’s where I would start.

Thanks for looking into this, @zmitchell! I’ll give it another shot

---

<div class="post-metadata">

**Author:** ![max](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.flox.dev/max/32/680_2.png) [@max](https://discourse.flox.dev/u/max)\
**Post date:** [September 2, 2024, 8:19pm UTC](https://discourse.flox.dev/t/installing-a-python-package-with-flox-that-has-a-dependency-not-included-in-the-set-of-nix-python-packages/940/8 "2024-09-02T20:19:06Z")

</div>

I created a new issue for the discussion related to jupyter notebook extensions: [Issues Using Jupyterlab Extensions with Flox](https://discourse.flox.dev/t/issues-using-jupyterlab-extensions-with-flox/958)
