How to install ERC721 Extensions Library

Hi, I am trying to create an ERC721 contract and am wanting to use the ERC721URIStorage.sol contract. When I ran npm install @openzeppelin/contracts it didn’t download the ERC721 extensions folder so I’m unable to import. Any idea how to download the extensions contract?

It's all in the package that you installed. You can use Contracts Wizard to get started, it will show you how to import the contract.

I'v same problem but in python.
How can I import in python? It doesnt work.

I put this code "import "@openzeppelin/contracts/token/ERC721/ERC721.sol" so must I install with the library with pip command first? how?

Hi, welcome! :wave:

If you use python, I would like to recommend you to use a framework named Brownie, IIRC, they have Brownie Package Manager, you can use this to install the dependency of the OpenZepeplin, for more details, please look at their documentation: Brownie — Brownie 1.17.0 documentation

2 Likes