Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

installing packages #34

Open
alanpaulkwan opened this issue Aug 28, 2023 · 2 comments
Open

installing packages #34

alanpaulkwan opened this issue Aug 28, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@alanpaulkwan
Copy link

alanpaulkwan commented Aug 28, 2023

ChatGPT refuses to install a package, but then a few days ago, it would work if I asked chatGPT to run the command (and I can also do it on the terminal)

import os
os.sys(''' pip install duckdb ''')
import duckdb

Error:

Traceback (most recent call last):
File /tmp/tmp85zlufnx.py:1
import duckdb
ModuleNotFoundError: No module named 'duckdb'

Now the first 2 lines work, but the last line still doesn't work. What is the best way to install packages?

@alanpaulkwan
Copy link
Author

alanpaulkwan commented Aug 28, 2023

I figured it out, but its hackish

python3 -m venv venv_interpreter && \
    source venv_interpreter/bin/activate

pip3 install duckdb

Would be nice if there was a better way!

@silvanmelchior silvanmelchior added the enhancement New feature or request label Aug 30, 2023
@silvanmelchior
Copy link
Owner

Just a note here for future readers, that this refers to installing packages on-demand. If it's just about having more packages, the readme shows how to build a custom docker image for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants