wsl下angr安装教程

pip3 install virtualenv
mkdir angr
cd angr_enviroment/
virtualenv -p (python的位置) venv
source venv/bin/activate
pip3 install angr
python3
import angr

如 import angr 遇错误:

Python 3.9.10 (main, Feb 22 2022, 13:54:07) 
[GCC 11.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import angr
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/root/angr/venv/lib/python3.9/site-packages/angr/__init__.py", line 22, in <module>
    from .utils.formatting import setup_terminal
  File "/root/angr/venv/lib/python3.9/site-packages/angr/utils/__init__.py", line 5, in <module>
    from . import enums_conv
  File "/root/angr/venv/lib/python3.9/site-packages/angr/utils/enums_conv.py", line 6, in <module>
    from ..protos.primitives_pb2 import Edge
  File "/root/angr/venv/lib/python3.9/site-packages/angr/protos/__init__.py", line 10, in <module>
    from . import primitives_pb2
  File "/root/angr/venv/lib/python3.9/site-packages/angr/protos/primitives_pb2.py", line 32, in <module>
    _descriptor.EnumValueDescriptor(
  File "/root/angr/venv/lib/python3.9/site-packages/google/protobuf/descriptor.py", line 755, in __new__
    _message.Message._CheckCalledFromGeneratedFile()
TypeError: Descriptors cannot not be created directly.
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
If you cannot immediately regenerate your protos, some other possible workarounds are:
 1. Downgrade the protobuf package to 3.20.x or lower.
 2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).

pip uninstall protobuf
pip install protobuf==3.20.1

 参考:

(18条消息) 在wsl上安装angr框架_ljahum的博客-CSDN博客

(21条消息) TypeError: Descriptors cannot not be created directly. If this call came from a _pb2.py file……_Xavier Jiezou的博客-CSDN博客

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值