Title: 怎么在anaconda虚拟环境里面安装? · Issue #20 · UsingNet/nvjpeg-python · GitHub
Open Graph Title: 怎么在anaconda虚拟环境里面安装? · Issue #20 · UsingNet/nvjpeg-python
X Title: 怎么在anaconda虚拟环境里面安装? · Issue #20 · UsingNet/nvjpeg-python
Description: 现在得把cuda和NvJpeg都安装到anaconda里方便复制环境。 cuda可以通过conda安装,直接都安装到cuda的虚拟环境里面了。 现在就差这个库怎么安装到cuda的虚拟环境里了。 我尝试修改了代码: elif platform.system() == 'Windows': cuda_include = 'C:\\Anaconda3\\envs\\onnx\\include' if platform.machine().endswith('64'): cud...
Open Graph Description: 现在得把cuda和NvJpeg都安装到anaconda里方便复制环境。 cuda可以通过conda安装,直接都安装到cuda的虚拟环境里面了。 现在就差这个库怎么安装到cuda的虚拟环境里了。 我尝试修改了代码: elif platform.system() == 'Windows': cuda_include = 'C:\\Anaconda3\\envs\\onnx\\include' i...
X Description: 现在得把cuda和NvJpeg都安装到anaconda里方便复制环境。 cuda可以通过conda安装,直接都安装到cuda的虚拟环境里面了。 现在就差这个库怎么安装到cuda的虚拟环境里了。 我尝试修改了代码: elif platform.system() == 'Windows': cuda_include = 'C:\\Anaconda3\\envs\\onnx...
Opengraph URL: https://github.com/UsingNet/nvjpeg-python/issues/20
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"怎么在anaconda虚拟环境里面安装?","articleBody":"现在得把cuda和NvJpeg都安装到anaconda里方便复制环境。\r\ncuda可以通过conda安装,直接都安装到cuda的虚拟环境里面了。\r\n现在就差这个库怎么安装到cuda的虚拟环境里了。\r\n我尝试修改了代码:\r\n```\r\nelif platform.system() == 'Windows':\r\n cuda_include = 'C:\\\\Anaconda3\\\\envs\\\\onnx\\\\include'\r\n if platform.machine().endswith('64'):\r\n cuda_lib = 'C:\\\\Anaconda3\\\\envs\\\\onnx\\\\Lib\\\\x64'\r\n else:\r\n cuda_lib = 'C:\\\\Anaconda3\\\\envs\\\\onnx\\\\Lib\\\\Win32'\r\n extension_nvjpeg = Extension('nvjpeg', \r\n ['nvjpeg-python.cpp', 'src\\\\x86\\\\JpegCoder.cpp'], \r\n ['include', numpy.get_include(), cuda_include], \r\n [('JPEGCODER_ARCH', 'x86')],\r\n library_dirs=[cuda_lib],\r\n )\r\n```\r\n我以为将cuda地址换掉就可以了,```python .\\setup.py build ```是通过了。但是```python .\\setup.py install```报错\r\n\r\n```\r\nC:\\Anaconda3\\envs\\onnx\\lib\\site-packages\\setuptools\\_distutils\\cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.\r\n!!\r\n\r\n ********************************************************************************\r\n Please avoid running ``setup.py`` directly.\r\n Instead, use pypa/build, pypa/installer or other\r\n standards-based tools.\r\n\r\n See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.\r\n ********************************************************************************\r\n\r\n!!\r\n self.initialize_options()\r\nC:\\Anaconda3\\envs\\onnx\\lib\\site-packages\\setuptools\\_distutils\\cmd.py:66: EasyInstallDeprecationWarning: easy_install command is deprecated.\r\n!!\r\n\r\n ********************************************************************************\r\n Please avoid running ``setup.py`` and ``easy_install``.\r\n Instead, use pypa/build, pypa/installer or other\r\n standards-based tools.\r\n\r\n See https://github.com/pypa/setuptools/issues/917 for details.\r\n ********************************************************************************\r\n\r\n!!\r\n self.initialize_options()\r\nwarning: no files found matching 'src\\**'\r\nzip_safe flag not set; analyzing archive contents...\r\n__pycache__.nvjpeg.cpython-38: module references __file__\r\n\r\n```","author":{"url":"https://github.com/nistarlwc","@type":"Person","name":"nistarlwc"},"datePublished":"2023-08-09T06:54:19.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/20/nvjpeg-python/issues/20"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:edfa6b59-1482-08ec-7ef2-9a2207e49340 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9A00:1256E4:5D659:79B5D:698E97F0 |
| html-safe-nonce | a2c886fd37ab4020da120f1b5718a20bbcc120c0f7a13443f1116c04cb65b5fc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QTAwOjEyNTZFNDo1RDY1OTo3OUI1RDo2OThFOTdGMCIsInZpc2l0b3JfaWQiOiI4NDc4MDE2MjI4NTk3NjAyMjg4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | dcb79a6d3ed4c72e36c7277602e572beb03cb9e564653c7826f342346c4b0ded |
| hovercard-subject-tag | issue:1842608209 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/UsingNet/nvjpeg-python/20/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6044edbe9e36c2a29b581aef40c0589f01936dfc3dfdda68701aea02dfa20c9f/UsingNet/nvjpeg-python/issues/20 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6044edbe9e36c2a29b581aef40c0589f01936dfc3dfdda68701aea02dfa20c9f/UsingNet/nvjpeg-python/issues/20 |
| og:image:alt | 现在得把cuda和NvJpeg都安装到anaconda里方便复制环境。 cuda可以通过conda安装,直接都安装到cuda的虚拟环境里面了。 现在就差这个库怎么安装到cuda的虚拟环境里了。 我尝试修改了代码: elif platform.system() == 'Windows': cuda_include = 'C:\\Anaconda3\\envs\\onnx\\include' i... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | nistarlwc |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb2828a801ee6b7be618f3ac76fbf55def35bbc30f053a9c41bf90210b8b72ba |
| turbo-cache-control | no-preview |
| go-import | github.com/UsingNet/nvjpeg-python git https://github.com/UsingNet/nvjpeg-python.git |
| octolytics-dimension-user_id | 23328403 |
| octolytics-dimension-user_login | UsingNet |
| octolytics-dimension-repository_id | 334122746 |
| octolytics-dimension-repository_nwo | UsingNet/nvjpeg-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 334122746 |
| octolytics-dimension-repository_network_root_nwo | UsingNet/nvjpeg-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e6b91a7e6e46287d26887e3fb7a4161657bab8f7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width