crypto-chassis / ccapi

A header-only C++ library for interacting with crypto exchanges. Bindings for Python, Java, C#, Go, and Javascript are provided.
https://discord.gg/b5EKcp9s8T
MIT License
582 stars 201 forks source link

ModuleNotFoundError: No module named 'ccapi' #386

Closed 111111m closed 1 year ago

111111m commented 1 year ago

I have followed the instruction to build cmake . -DCMAKE_PROJECT_INCLUDE=user_specified_cmake_include.cmake -DBUILD_VERSION=5.10 -DBUILD_PYTHON=ON -DINSTALL_PYTHON=ON ..

cmake --build . cmake --install .

Everything was successful. Then, I still get this error:
from ccapi import (Event, EventHandler, Request, Session, SessionConfigs, ModuleNotFoundError: No module named 'ccapi

How should I solve this?

cryptochassis commented 1 year ago

Perhaps try to do it with a venv. i.e. first do python3 -m venv your-venv-dir, then do everything above.