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

Warnings when running pip.import more than once #49

Open
sergeysolovev opened this issue Sep 29, 2023 · 1 comment
Open

Warnings when running pip.import more than once #49

sergeysolovev opened this issue Sep 29, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@sergeysolovev
Copy link

sergeysolovev commented Sep 29, 2023

import { pip } from 'https://deno.land/x/python@0.4.0/ext/pip.ts';
await pip.import('numpy');

Second and consecutive runs of this code give me the following warnings:

WARNING: Target directory /Users/admin/Library/Caches/deno/plug/pip/numpy already exists. Specify --upgrade to force replacement.
WARNING: Target directory /Users/admin/Library/Caches/deno/plug/pip/numpy-1.26.0.dist-info already exists. Specify --upgrade to force replacement.
WARNING: Target directory /Users/admin/Library/Caches/deno/plug/pip/bin already exists. Specify --upgrade to force replacement.

My version of deno is 1.37.1

@eliassjogreen eliassjogreen added the enhancement New feature or request label Oct 3, 2023
@eliassjogreen
Copy link
Member

This is an issue with how we plug into pips cache and how it will try to install already installed packages anyways. I am not knowledgeable enough with pip to really know if there is a better way or a solution to this. If there is a solution it is the same in the console but I am unaware of any flag which solves this.

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