Git Product home page Git Product logo

Comments (14)

Yutong-gannis avatar Yutong-gannis commented on August 16, 2024

@nijiuning 是不是文件路径不对

from etsauto.

nijiuning avatar nijiuning commented on August 16, 2024

要放在c盘里吗

from etsauto.

nijiuning avatar nijiuning commented on August 16, 2024

@Yutong-gannis 我也不知道装在哪个盘里了 我就按照教程来的

from etsauto.

nijiuning avatar nijiuning commented on August 16, 2024

我是个小白

from etsauto.

nijiuning avatar nijiuning commented on August 16, 2024

Traceback (most recent call last):
File "E:\2\Self-driving-Truck-in-Euro-Truck-Simulator2-main\Self-driving-Truck-in-Euro-Truck-Simulator2-main\tools\export.py", line 7, in
import tensorrt as trt
ModuleNotFoundError: No module named 'tensorrt'

from etsauto.

Yutong-gannis avatar Yutong-gannis commented on August 16, 2024

@nijiuning 随便放在哪里都行,但是执行python main.py的时候要在该文件目录下执行

from etsauto.

nijiuning avatar nijiuning commented on August 16, 2024

@nijiuning 是不是文件路径不对
我一直卡在构建 TensorRT 文件这一步

from etsauto.

nijiuning avatar nijiuning commented on August 16, 2024

@Yutong-gannis 我没有看到这个文件

from etsauto.

Yutong-gannis avatar Yutong-gannis commented on August 16, 2024

@nijiuning tensorrt看教程安装就行

from etsauto.

nijiuning avatar nijiuning commented on August 16, 2024

是要在CUDA文件里创建engines文件夹吗

from etsauto.

nijiuning avatar nijiuning commented on August 16, 2024

@Yutong-gannis 是要在CUDA文件里创建engines文件夹吗

from etsauto.

nijiuning avatar nijiuning commented on August 16, 2024

@Yutong-gannis PS C:\Users\nijiuning> pip install E:\2\TensorRT-8.4.2.4\onnx_graphsurgeon\onnx_graphsurgeon-0.3.12-py2.py3-none-any.whl

Processing e:\2\tensorrt-8.4.2.4\onnx_graphsurgeon\onnx_graphsurgeon-0.3.12-py2.py3-none-any.whl
Requirement already satisfied: numpy in e:\python\lib\site-packages (from onnx-graphsurgeon==0.3.12) (1.23.5)
Collecting onnx
Downloading onnx-1.13.0-cp311-cp311-win_amd64.whl (12.2 MB)
━━━━━━━━╺━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.5/12.2 MB 6.9 kB/s eta 0:23:26
ERROR: Exception:
Traceback (most recent call last):
File "E:\python\Lib\site-packages\pip_vendor\urllib3\response.py", line 437, in _error_catcher
yield
File "E:\python\Lib\site-packages\pip_vendor\urllib3\response.py", line 560, in read
data = self._fp_read(amt) if not fp_closed else b""
^^^^^^^^^^^^^^^^^^
File "E:\python\Lib\site-packages\pip_vendor\urllib3\response.py", line 526, in _fp_read
return self._fp.read(amt) if amt is not None else self._fp.read()
^^^^^^^^^^^^^^^^^^
File "E:\python\Lib\site-packages\pip_vendor\cachecontrol\filewrapper.py", line 90, in read
data = self.__fp.read(amt)
^^^^^^^^^^^^^^^^^^^
File "E:\python\Lib\http\client.py", line 465, in read
s = self.fp.read(amt)
^^^^^^^^^^^^^^^^^
File "E:\python\Lib\socket.py", line 705, in readinto
return self._sock.recv_into(b)
^^^^^^^^^^^^^^^^^^^^^^^
File "E:\python\Lib\ssl.py", line 1278, in recv_into
return self.read(nbytes, buffer)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\python\Lib\ssl.py", line 1134, in read
return self._sslobj.read(len, buffer)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TimeoutError: The read operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "E:\python\Lib\site-packages\pip_internal\cli\base_command.py", line 160, in exc_logging_wrapper
status = run_func(*args)
^^^^^^^^^^^^^^^
File "E:\python\Lib\site-packages\pip_internal\cli\req_command.py", line 247, in wrapper
return func(self, options, args)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\python\Lib\site-packages\pip_internal\commands\install.py", line 400, in run
requirement_set = resolver.resolve(
^^^^^^^^^^^^^^^^^
File "E:\python\Lib\site-packages\pip_internal\resolution\resolvelib\resolver.py", line 92, in resolve
result = self._result = resolver.resolve(
^^^^^^^^^^^^^^^^^
File "E:\python\Lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 481, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\python\Lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 373, in resolve
failure_causes = self._attempt_to_pin_criterion(name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\python\Lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 213, in _attempt_to_pin_criterion
criteria = self._get_updated_criteria(candidate)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\python\Lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 204, in _get_updated_criteria
self._add_to_criteria(criteria, requirement, parent=candidate)
File "E:\python\Lib\site-packages\pip_vendor\resolvelib\resolvers.py", line 172, in _add_to_criteria
if not criterion.candidates:
File "E:\python\Lib\site-packages\pip_vendor\resolvelib\structs.py", line 151, in bool
return bool(self._sequence)
^^^^^^^^^^^^^^^^^^^^
File "E:\python\Lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 155, in bool
return any(self)
^^^^^^^^^
File "E:\python\Lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 143, in
return (c for c in iterator if id(c) not in self._incompatible_ids)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\python\Lib\site-packages\pip_internal\resolution\resolvelib\found_candidates.py", line 47, in _iter_built
candidate = func()
^^^^^^
File "E:\python\Lib\site-packages\pip_internal\resolution\resolvelib\factory.py", line 206, in _make_candidate_from_link
self._link_candidate_cache[link] = LinkCandidate(
^^^^^^^^^^^^^^
File "E:\python\Lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 297, in init
super().init(
File "E:\python\Lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 162, in init
self.dist = self._prepare()
^^^^^^^^^^^^^^^
File "E:\python\Lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 231, in _prepare
dist = self._prepare_distribution()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\python\Lib\site-packages\pip_internal\resolution\resolvelib\candidates.py", line 308, in _prepare_distribution
return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\python\Lib\site-packages\pip_internal\operations\prepare.py", line 491, in prepare_linked_requirement
return self._prepare_linked_requirement(req, parallel_builds)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\python\Lib\site-packages\pip_internal\operations\prepare.py", line 536, in _prepare_linked_requirement
local_file = unpack_url(
^^^^^^^^^^^
File "E:\python\Lib\site-packages\pip_internal\operations\prepare.py", line 166, in unpack_url
file = get_http_url(
^^^^^^^^^^^^^
File "E:\python\Lib\site-packages\pip_internal\operations\prepare.py", line 107, in get_http_url
from_path, content_type = download(link, temp_dir.path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\python\Lib\site-packages\pip_internal\network\download.py", line 147, in call
for chunk in chunks:
File "E:\python\Lib\site-packages\pip_internal\cli\progress_bars.py", line 53, in _rich_progress_bar
for chunk in iterable:
File "E:\python\Lib\site-packages\pip_internal\network\utils.py", line 63, in response_chunks
for chunk in response.raw.stream(
File "E:\python\Lib\site-packages\pip_vendor\urllib3\response.py", line 621, in stream
data = self.read(amt=amt, decode_content=decode_content)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\python\Lib\site-packages\pip_vendor\urllib3\response.py", line 559, in read
with self._error_catcher():
File "E:\python\Lib\contextlib.py", line 155, in exit
self.gen.throw(typ, value, traceback)
File "E:\python\Lib\site-packages\pip_vendor\urllib3\response.py", line 442, in _error_catcher
raise ReadTimeoutError(self._pool, None, "Read timed out.")
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.

[notice] A new release of pip available: 22.3 -> 22.3.1
[notice] To update, run: python.exe -m pip install --upgrade pip

from etsauto.

ywjno avatar ywjno commented on August 16, 2024

貌似下载 onnx-1.13.0-cp311-cp311-win_amd64.whl 的时候网络环境不行下不下来 timeout 了,设置下 pip 的 proxy 然后再试试

from etsauto.

HLeonHong avatar HLeonHong commented on August 16, 2024

题主, 请问你成功了吗? 可否 + 个好友互相学习交流一下呀?

from etsauto.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.