RUN__IT # python安装PIL包的方法

本文纠正了一个常见的Python图像处理库误解。PIL库已更名为Pillow,直接安装PIL会导致错误。正确做法是使用pip3 install pillow进行安装。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

PIL名称已经换成了Pillow。。。。
所以使用:

pip3 install pil

会报错。

正确方法是:

pip3 install pillow

Error occurred while processing J1/imported/004221572980242426367_331976_li_0207_00014.tif Traceback (most recent call last): File "/opt/cryosparc/cryosparc_worker/cryosparc_compute/jobs/pipeline.py", line 59, in exec return self.process(item) File "cryosparc_master/cryosparc_compute/jobs/motioncorrection/run_patch.py", line 213, in cryosparc_master.cryosparc_compute.jobs.motioncorrection.run_patch.run_patch_motion_correction_multi.motionworker.process File "cryosparc_master/cryosparc_compute/jobs/motioncorrection/run_patch.py", line 216, in cryosparc_master.cryosparc_compute.jobs.motioncorrection.run_patch.run_patch_motion_correction_multi.motionworker.process File "cryosparc_master/cryosparc_compute/jobs/motioncorrection/run_patch.py", line 245, in cryosparc_master.cryosparc_compute.jobs.motioncorrection.run_patch.run_patch_motion_correction_multi.motionworker.process File "cryosparc_master/cryosparc_compute/jobs/motioncorrection/run_patch.py", line 222, in cryosparc_master.cryosparc_compute.jobs.motioncorrection.run_patch.run_patch_motion_correction_multi.motionworker.process File "cryosparc_master/cryosparc_compute/jobs/motioncorrection/patchmotion.py", line 292, in cryosparc_master.cryosparc_compute.jobs.motioncorrection.patchmotion.unbend_motion_correction File "cryosparc_master/cryosparc_compute/jobs/motioncorrection/patchmotion.py", line 294, in cryosparc_master.cryosparc_compute.jobs.motioncorrection.patchmotion.unbend_motion_correction File "cryosparc_master/cryosparc_compute/gpu/gpucore.py", line 319, in cryosparc_master.cryosparc_compute.gpu.gpucore.EngineBaseThread.__init__ File "/opt/cryosparc/cryosparc_worker/deps/anaconda/envs/cryosparc_worker_env/lib/python3.10/site-packages/numba/cuda/cudadrv/devices.py", line 232, in _require_cuda_context return fn(*args, **kws) File "/opt/cryosparc/cryosparc_worker/deps/anaconda/envs/cryosparc_worker_env/lib/python3.10/site-packages/numba/cuda/api.py", line 330, in stream return current_context().create_stream() File "/opt/cryosparc/cryosparc_worker/deps/anaconda/envs/cryosparc_worker_env/lib/python3.10/site-packages/numba/cuda/cudadrv/driver.py", line 1480, in create_stream handle = driver.cuStreamCreate(flags) File "/opt/cryosparc/cryosparc_worker/deps/anaconda/envs/cryosparc_worker_env/lib/python3.10/site-packages/numba/cuda/cudadrv/driver.py", line 348, in safe_cuda_api_call return self._check_cuda_python_error(fname, libfn(*args)) File "/opt/cryosparc/cryosparc_worker/deps/anaconda/envs/cryosparc_worker_env/lib/python3.10/site-packages/numba/cuda/cudadrv/driver.py", line 408, in _check_cuda_python_error raise CudaAPIError(retcode, msg) numba.cuda.cudadrv.driver.CudaAPIError: [CUresult.CUDA_ERROR_LAUNCH_FAILED] Call to cuStreamCreate results in CUDA_ERROR_LAUNCH_FAILED Marking J1/imported/004221572980242426367_331976_li_0207_00014.tif as incomplete and continuing...
最新发布
06-11
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值