在我创建了一个新项目后,brownie init
我编译了一个合同并尝试运行脚本以使用brownie run scripts/deploy.py
.
但我有;
ModuleNotFoundError:没有名为“Users.[USERNAME].[PATH]”的模块
Brownie v1.16.4 - Python development framework for Ethereum
BrownieSimpleStorageProject is the active project.
Launching 'ganache-cli.cmd --port 8545 --gasLimit 12000000 --accounts 10 --hardfork istanbul --mnemonic brownie'...
File "C:\Program, line line, in in
return_value, frame = run(
File "C:\Program, line line, in in
module = _import_from_path(script)
File "C:\Program, line line, in in
_import_cache[import_str] = importlib.import_module(import_str)
File "C:\Program, line line, in in
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen, line line, in in
File "<frozen, line line, in in
File "<frozen, line line, in in
File "<frozen, line line, in in
File "<frozen, line line, in in
File "<frozen, line line, in in
File "<frozen, line line, in in
File "<frozen, line line, in in
File "<frozen, line line, in in
File "<frozen, line line, in in
File "<frozen, line line, in in
File "<frozen, line line, in in
File "<frozen, line line, in in
File "<frozen, line line, in in
File "<frozen, line line, in in
File "<frozen, line line, in in
File "<frozen, line line, in in
File "<frozen, line line, in in
File "<frozen, line line, in in
File "<frozen, line line, in in
File "<frozen, line line, in in
File "<frozen, line line, in in
File "<frozen, line line, in in
ModuleNotFoundError: No module named 'Users.[userName].Documents.Git.solidity-web3'
Terminating local RPC client...
*PS 在我将'Users.[USERNAME].[PATH]'目录之外的项目文件夹移动到'C:'之后,它起作用了。