michaelhly / solana-py

Solana Python SDK
https://michaelhly.github.io/solana-py
MIT License
979 stars 252 forks source link

ModuleNotFoundError: No module named 'solana.publickey' #414

Closed xiaohuangwritebug closed 5 months ago

xiaohuangwritebug commented 5 months ago

code :from solana.publickey import PublicKey


ModuleNotFoundError: No module named 'solana.publickey'

xiaohuangwritebug commented 5 months ago

I have tried reinstalling the env

kevinheavey commented 5 months ago

This module hasn't existed for almost two years. Are there out of date docs somewhere that told you to use it?

What you want is in Solders https://kevinheavey.github.io/solders/tutorials/pubkeys.html