Skip to main content
Question

Can't import boxsdk python package even have installed it

  • October 9, 2025
  • 4 replies
  • 437 views

I have install boxsdk python package by ‘pip install boxsdk’. But Still got error like ModuleNotFoundError: No module named 'boxsdk'

Python 3.10.13

pip 23.0.1 from /Users/elei/.pyenv/versions/3.10.13/lib/python3.10/site-packages/pip (python 3.10)

Successfully installed boxsdk-10.0.1

 

This is a python example:

from boxsdk import OAuth2, Client

 

oauth = OAuth2(

    client_id='YOUR_CLIENT_ID',

    client_secret='YOUR_CLIENT_SECRET',

    store_tokens=your_store_tokens_callback_method,

    access_token=persisted_access_token,

    refresh_token=persisted_refresh_token,

)

client = Client(oauth)

4 replies

  • New Member
  • November 6, 2025

I found the same error.

In my laptop I can connect without issues, but using the same code at AWS EC2 Instance I had problems.

Using VS Code

pip show boxsdk:

Name: boxsdk
Version: 10.0.1
Summary: Official Box Python SDK
Home-page: https://github.com/box/box-python-sdk.git
Author: Box
Author-email: [removed by moderator]
License: Apache-2.0, http://www.apache.org/licenses/LICENSE-2.0
Location: C:\Users\Admin_JGalego1\AppData\Local\Programs\Python\Python313\Lib\site-packages
Requires: requests, requests-toolbelt
Required-by:


  • New Member
  • November 6, 2025

I have install boxsdk python package by ‘pip install boxsdk’. But Still got error like ModuleNotFoundError: No module named 'boxsdk'

Python 3.10.13

pip 23.0.1 from /Users/elei/.pyenv/versions/3.10.13/lib/python3.10/site-packages/pip (python 3.10)

Successfully installed boxsdk-10.0.1

 

This is a python example:

from boxsdk import OAuth2, Client

 

oauth = OAuth2(

    client_id='YOUR_CLIENT_ID',

    client_secret='YOUR_CLIENT_SECRET',

    store_tokens=your_store_tokens_callback_method,

    access_token=persisted_access_token,

    refresh_token=persisted_refresh_token,

)

client = Client(oauth)

Hi!

I fix it applying this tip:

 


  • New Member
  • November 6, 2025

 


  • New Member
  • November 6, 2025

you should regress to the latest BoxSDK 3.x by removing the installed BoxSDK and reinstall using 

pip install "boxsdk~=3.0"

The latest BoxSDK is using new module “box-sdk-gen“, which is impacting the way how to work with the BoxSDK in Python. More details in boxsdk · PyPI.