https://github.com/vyperlang/vyper/actions/workflows/test.yml/badge.svg](https://github.com/vyperlang/vyper/actions/workflows/test.yml) 
See Installing Vyper to install vyper. See Tools and Resources for an additional list of framework and tools with vyper support. See Documentation for the documentation and overall design goals of the Vyper language.
See learn.vyperlang.org for learning Vyper by building a Pokémon game. See try.vyperlang.org to use Vyper in a hosted jupyter environment!
Note: Vyper is constantly evolving, use with care and understand the risks associated with smart contract development.
See the Vyper documentation for build instructions.
To compile a contract, use:
bashvyper your_file_name.vy
generate bytecode
vyper -f bytecode file-name.vy > file-name.bin
generate abi
vyper -f abi file-name.vy > file-name.abi
There is also an online compiler available you can use to experiment with
the language and compile to bytecode and/or IR.
Note: While the vyper version of the online compiler is updated on a regular basis it might be a bit behind the latest version found in the master branch of this repository.
uv (recommended)
Make sure you have uv installed
cd into itgit fetch --tags git@github.com:vyperlang/vyper.git to get the tags necessary for version inferenceuv syncsource .venv/bin/activate to activate the virtual environmentvyper --version to verify the setupgit config blame.ignoreRevsFile .git-blame-ignore-revs to improve git blamepip
Make sure you have pip, setuptools, and pytest installed
cd into itgit fetch --tags git@github.com:vyperlang/vyper.git to get the tags necessary for version inferencepython -m venv .venv to create a virtual environmentsource .venv/bin/activate to activate itmake init to install the main dependenciesmake dev-init to install the dev dependenciesvyper --version to verify the setupgit config blame.ignoreRevsFile .git-blame-ignore-revs to improve git blamevyper path/to/file.vy to run your local copy of the compilerpytest to test your changes
Useful pytest flags:
* -x: Fail test run on first test failure
* --instafail: Show reason for test failure directly, instead of at the end of a test run
* --disable-warnings: Hide warnings which occurred during testsmake mypy to type check your changesmake lint to check your files are correctly formatted (also runs mypy)Checking performance
To run a python performance profile (to find compiler perf hotspots):
bashPYTHONPATH=. python -m cProfile -s tottime vyper/cli/vyper_compile.py "$@"
The utility timer functions timeit, profileit and cumtimeit are available in vyper/utils.py.
Getting call graph
To get a call graph from a python profile, install gprof2dot and xdot, and run it like gprof2dot -f pstats stats | xdot -. (See [***]
Testing with hevm
Install hevm by downloading it from the releases page (https://github.com/***/hevm/releases/latest) and making sure it is in your PATH. hevm tests can be enabled with --hevm flag, and hevm tests can be selected with the -m hevm marker. For instance, pytest -m "hevm" --hevm.
Fuzzing tests
Fuzzing test are very slow, so they are not run by default.
To run them, use pytest -m "fuzzing".
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 Docker 登录认证访问私有仓库
无需登录使用专属域名
Kubernetes 集群配置 Containerd
K3s 轻量级 Kubernetes 镜像加速
VS Code Dev Containers 配置
Podman 容器引擎配置
HPC 科学计算容器配置
ghcr、Quay、nvcr 等镜像仓库
Harbor Proxy Repository 对接专属域名
Portainer Registries 加速拉取
Nexus3 Docker Proxy 内网缓存
需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单
docker search 限制
站内搜不到镜像
离线 save/load
插件要用 plugin install
WSL 拉取慢
安全与 digest
新手拉取配置
镜像合规机制
不支持 push
manifest unknown
no matching manifest(架构)
invalid tar header(解压)
TLS 证书失败
DNS 超时
域名连通性排查
410 Gone 排查
402 与流量用尽
401 认证失败
429 限流
D-Bus 凭证提示
413 与超大单层
来自真实用户的反馈,见证轩辕镜像的优质服务