Comments (4)
@ponderMuse, can you try with:
export PYTHONPATH=/mnt/data/apps/chroma:$PYTHONPATH
chroma run
from chroma.
@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 environmentpython -m virtualenv venv
(this creates a new virtual env invenv
dir. Activate virtual envsource ./venv/bin/activate
. Install chromapip 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.
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.
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)
- [Bug]: "Collection is not created" message despite being returned by list_collections method HOT 6
- [Bug]: client/server mode RuntimeError: coroutine raised StopIteration HOT 6
- [Bug]: Type mismatch for embedding function HOT 6
- [Bug]: where not equals clause not working HOT 2
- [Install issue]: Packaging and Deployment Issue with chromadb-client in AWS Lambda HOT 3
- [Bug]: fail to send the telemetry HOT 1
- ModuleNotFoundError: No module named 'google.rpc'
- [Bug]: Error when using anonymized_telemetry with PersistentClient HOT 3
- [Bug]: sqlite3.OperationalError: database or disk is full (Not really) HOT 3
- [Bug]: chromadb.db.base.UniqueConstraintError Collection already exists HOT 2
- [Bug]: Embeddings based query does not returns documents HOT 2
- [Bug]: Chroma returns more documents that it should HOT 1
- [Bug]: cohere embedding ValueError HOT 8
- [Install issue]: {"detail":"Not Found"} on localhost and api/v1 not working HOT 1
- [Bug]: Seems that 'chroma run' does not work for some chroma packages with earlier version? HOT 4
- Error: TypeError: fetch failed for a test ChromaDB implementation HOT 2
- [Bug]: Server token auth does not seem to work - still allows non authenticated queries HOT 19
- [Feature Request]: MLX embedding HOT 2
- [Bug]: instantiating Chroma from persist_directory not working HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chroma.