Python pip install of Canopy is having problems. Malwarebytes? Windows Firewall?

pip is failing to install Canopy. I have no idea why, but it is trying to install in the right place, but finds it unwritable and so it tries to install it in …\AppData\Roaming.… and fails. Can someone provide me a standard install folder for Canopy that I can manually copy into site-packages? Please see the following error report:

C:\Users\gaopt>py -m pip install canopy_sdk
Defaulting to user installation because normal site-packages is not writeable
Collecting canopy_sdk
Using cached canopy_sdk-0.5.0-py3-none-any.whl.metadata (15 kB)
Collecting fastapi<0.93.0,>=0.92.0 (from canopy_sdk)
Using cached fastapi-0.92.0-py3-none-any.whl (56 kB)
Collecting gunicorn<22.0.0,>=21.2.0 (from canopy_sdk)
Using cached gunicorn-21.2.0-py3-none-any.whl.metadata (4.1 kB)
Collecting jsonschema<5.0.0,>=4.2.0 (from canopy_sdk)
Using cached jsonschema-4.20.0-py3-none-any.whl.metadata (8.1 kB)
Collecting openai<2.0.0,>=1.2.3 (from canopy_sdk)
Using cached openai-1.6.1-py3-none-any.whl.metadata (17 kB)
Collecting pandas-stubs<,>= (from canopy_sdk)
Using cached pandas_stubs- (9.6 kB)
Collecting pinecone-client<3.0.0,>=2.2.2 (from canopy_sdk)
Using cached pinecone_client-2.2.4-py3-none-any.whl.metadata (7.8 kB)
Collecting pinecone-datasets<0.7.0,>=0.6.2 (from canopy_sdk)
Using cached pinecone_datasets-0.6.2-py3-none-any.whl.metadata (11 kB)
Collecting pinecone-text<0.8.0,>=0.7.1 (from canopy_sdk)
Using cached pinecone_text-0.7.1-py3-none-any.whl.metadata (9.0 kB)
Collecting prompt-toolkit<4.0.0,>=3.0.39 (from canopy_sdk)
Using cached prompt_toolkit-3.0.43-py3-none-any.whl.metadata (6.5 kB)
Collecting pydantic<2.0.0,>=1.10.7 (from canopy_sdk)
Using cached pydantic-1.10.13-py3-none-any.whl.metadata (149 kB)
Collecting python-dotenv<2.0.0,>=1.0.0 (from canopy_sdk)
Using cached python_dotenv-1.0.0-py3-none-any.whl (19 kB)
Collecting sentencepiece<0.2.0,>=0.1.99 (from canopy_sdk)
Using cached sentencepiece-0.1.99.tar.gz (2.6 MB)
Installing build dependencies … done
Getting requirements to build wheel … error
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [31 lines of output]
Traceback (most recent call last):
File “C:\Users\gaopt\AppData\Roaming\Python\Python312\site-packages\pip_vendor\”, line 353, in
File “C:\Users\gaopt\AppData\Roaming\Python\Python312\site-packages\pip_vendor\”, line 335, in main
json_out[‘return_val’] = hook(**hook_input[‘kwargs’])
File “C:\Users\gaopt\AppData\Roaming\Python\Python312\site-packages\pip_vendor\”, line 118, in get_requires_for_build_wheel
return hook(config_settings)
File “C:\Users\gaopt\AppData\Local\Temp\pip-build-env-7ndkcxvi\overlay\Lib\site-packages\setuptools\”, line 325, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[‘wheel’])
File “C:\Users\gaopt\AppData\Local\Temp\pip-build-env-7ndkcxvi\overlay\Lib\site-packages\setuptools\”, line 295, in _get_build_requires
File “C:\Users\gaopt\AppData\Local\Temp\pip-build-env-7ndkcxvi\overlay\Lib\site-packages\setuptools\”, line 480, in run_setup
super(_BuildMetaLegacyBackend, self).run_setup(setup_script=setup_script)
File “C:\Users\gaopt\AppData\Local\Temp\pip-build-env-7ndkcxvi\overlay\Lib\site-packages\setuptools\”, line 311, in run_setup
exec(code, locals())
File “”, line 126, in
File “C:\Program Files\Python312\Lib\”, line 408, in check_call
retcode = call(*popenargs, **kwargs)
File “C:\Program Files\Python312\Lib\”, line 389, in call
with Popen(*popenargs, **kwargs) as p:
File “C:\Program Files\Python312\Lib\”, line 1026, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File “C:\Program Files\Python312\Lib\”, line 1538, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

Try using Python virtual envs to make sure your install is in a local folder to avoid any filesystem permission problems. It will also install all of the dependencies in the virtual env to avoid any clashes with other installations.

C:\Users\gaopt>py -m venv c:\path\to\myenv

Completely my fault. Your GitHub page ( GitHub - pinecone-io/canopy: Retrieval Augmented Generation (RAG) framework and context engine powered by Pinecone ) clearly stated Python 3.9, 3.10, 3.11 . By failing to read this, I went down many rabbit holes related to this and other errors. The good news: Canopy is attracting none-programmers like me. The bad news: I am clogging your support forum with stupid, ameteur questions. “Remember, there are no stupid question, but there sure are a lot of inquisitive idiots.”

Please remove this support request.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.