I tried importing pinecone but was not successful:
Error
Command failed: python3 -m pip install --target=/tmp/__pdg__/dist/python -r requirements.txt --upgrade WARNING: The directory '/home/sbx_user1051/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag. ERROR: Could not find a version that satisfies the requirement pinecone==0.1.0 (from versions: none) ERROR: No matching distribution found for pinecone==0.1.0 WARNING: You are using pip version 22.0.4; however, version 23.1.2 is available. You should consider upgrading via the '/var/lang/bin/python3 -m pip install --upgrade pip' command.
I’ve tried adding both magic comments:
# pipedream add-package pinecone-client
# also tried this:
# pipedream add-package pinecone-client==2.2.1
import pinecone
import langchain
import openai
def handler(pd: "pipedream"):
print("Success!")
is there a way to import specific versions in python steps? It looks like it’s trying to import an arbitrary 0.1.0 version (not sure if this is the cause though)