Coder Social home page Coder Social logo

Comments (4)

tazarov avatar tazarov commented on July 24, 2024 1

@ponderMuse, can you try with:

export PYTHONPATH=/mnt/data/apps/chroma:$PYTHONPATH
chroma run

from chroma.

tazarov avatar tazarov commented on July 24, 2024 1

@ponderMuse, the --target only installs in a target dir so Python itself doesn't have any knowledge of that DIR as it is not on its path.

There are two strategies that people use:

  • you can rely on your system's site-packages which are either user-specific or system-wide (if you run with root e.g. sudo) - pip install chromadb
  • Use virtual env (install venv package by running pip install virtualenv) - create a virtual environment python -m virtualenv venv (this creates a new virtual env in venv dir. Activate virtual env source ./venv/bin/activate. Install chroma pip install chromadb

The virulent approach allows you to keep the global scope of your Python packages clean but comes at the expense of extra steps.

And last is the approach you've taken above which is similar to the virtual env approach, but slightly simpler.

from chroma.

ponderMuse avatar ponderMuse commented on July 24, 2024 1

That's really good detailed info and good to know about the different possible ways of setting up python environments.

For now I've added an export PYTHONPATH instruction to my home folder's .profile file as am currently just doing some PoC work using Chroma db but will follow up with best practices if Chroma becomes more permanent, etc. Thanks again.

from chroma.

ponderMuse avatar ponderMuse commented on July 24, 2024

Ah, yes. That did it, thanks. I don't know anything about Python or Pip but how come that path is not set as part of the install process? Anyway, I'll close the issue as your answer worked great. Thanks, again.

from chroma.

Related Issues (20)

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.