`Subset` , `torch.utils.data.DataLoader` PyTorch Python 'utils.google_utils' . Sign up for a free GitHub account to open an issue and contact its maintainers and the community. @XiaoJiNu that's strange. @cartovarc ok got it, thanks for the feedback! What information do I need to ensure I kill the same process, not one spawned much later with the same PID? uninstall it pip uninstall django-model-utils then install it again pip install mnist_train = datasets.MNIST('mnist', train=True, download=True, __init__.py By clicking Post Your Answer, you agree to our terms of service, privacy policy and cookie policy. Sign in How can I test if a new package version will pass the metadata verification step without triggering a new package version? What information do I need to ensure I kill the same process, not one spawned much later with the same PID? I am not familiar with Ubuntu and it's commands paths etc as I've only been using it a few months. ``` subset_indices = list(range(0, 1000)) Make sure imported modules are the installation didn't go through, you will notice no module called model_utils in your project folder. @jdehesa Under Johny Vaknin's answer I found my fix. "Debian/Ubuntu Notes: Be sure to install the portaudio library development package (portaudio19-dev) and the python development package (python-all-dev) beforehand." Still using python3.10 -m pip some_command might result in error to fix it use. ', s: {fill: {fgColor: {rgb: 'FF0000'}}}}s Well occasionally send you account related emails. Why hasn't the Attorney General investigated Justice Thomas? torch.utils.data.subset PyTorch modulenotfounderror: no module named '__main__.utils'; '__main__' is not a package Pythonutils Site design / logo 2023 Stack Exchange Inc; user contributions licensed under CC BY-SA. If I try pip install osgeo-utils I then get more errors note: This is an issue with the package mentioned above, not pip. PyTorch `DataLoader` It only takes a minute to sign up. Once you have sufficient, however it solved the issue for python 3.9 and ubuntu 22.4, @MarcVanhoomissen As far as I can tell this actually provides the best answer here. Put someone on the same pedestal as another. To mark a directory as a package you need a file named __init__.py , does this help? no module named 'utils.google_utils'. 12 import requests Making statements based on opinion; back them up with references or personal experience. Required fields are marked *. Review invitation of an article that overly cites me and the journal. dataset = MyDataset() # MyDataset ``` ModuleNotFoundError: No module named 'torch._six'` Anyone can help me fix this? from torchvision.datasets import MNIST `dataset` `indices``torch.utils.data.subset` `dataset` `indices` torch.utils.data.Subset `torch.utils.data.subset`PyTorch By clicking Accept all cookies, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy. `subset` 100 `subset` 50 I created the init.py file inside the utils folder and posters have suggested and it worked! Is a copyright claim diminished by an owner's refusal to publish? (Mind the .: at th --, The philosopher who believes in Web Assembly, Improving the copy in the close modal and post notices - 2023 edition, New blog post from our CEO Prashanth: Community is the future of AI. `DataLoader` : # Sign up for a free GitHub account to open an issue and contact its maintainers and the community. pass Your email address will not be published. @leonzfa @husnejahan utils refers to the folder in this repo, it does not require any package installation. pip install torchvision I think you may have installed utils package. to your account. In my case, I switched from python3.6 into python3.9 and it worked. Thank you. Is a copyright claim diminished by an owner's refusal to publish? Construct a bijection given two injections. Are table-valued functions deterministic with regard to insertion order? Can dialogue be put in the same paragraph as action text? Python'common.utils'PythonPython, "utils.datasets", torchvision.models.utilstorchvisiontorchvisiontorchvision Therefore. I had a similar issue, but opposite: I had Python 3.8 and 3.6. Instead of running script inside object detection folder append the 100 `torch.utils.data.subset` 10 How to turn off zsh save/restore session in Terminal.app. Ask Ubuntu is a question and answer site for Ubuntu users and developers. from utils.parse_config import * Have a question about this project? I had to install the versioned distutils for all alternate versions of the form python3.x-distutils. Learn more about Stack Overflow the company, and our products. uninstall it pip uninstall django-model-u can one turn left and right at a red light with dual lane turns? Ubuntu and the circle of friends logo are trade marks of Canonical Limited and are used under licence. By clicking Post Your Answer, you agree to our terms of service, privacy policy and cookie policy. Find centralized, trusted content and collaborate around the technologies you use most. `dataset` `indices` `subset` One of the most common problems in Python is the frustrating error message modulenotfounderror: no module named utils' at some point in your programming journey. Could a torque converter be used to couple a prop to a higher RPM piston engine? Based on your comments to orip's post, I guess this is what happened: You edited __init__.py on windows. File "detect.py", line 5, in I had a virtual environment depending on Python 3.7, and, to avoid re-installing the whole virtual environment for Python 3.8, I fixed distutils on Python 3.7: And then installed the distutils package for Python 3.7: Note: for some reason I had an error installing the latter, that I solved this way: Debian has decided that distutils is not a core python package, so it is not included in the last versions of debian and debian-based OSes. 12 from torch.utils.data._utils.collate import np_str_obj_array_pattern, default_collate_err_msg_format 13 from tqdm import tqdm. I don't mean to be rude but I don't understand what you mean. Why is Noether's theorem not guaranteed by calculus? Sign in ImportError: No module named utils Can you please help me resolve this issue? `Subset` transform=transforms.Compose([ `indices = [0, 1, 2, , n-1]` n How to add double quotes around string and number pattern? I've run the repo on MacOS, Unix and Windows 10, and it always works as-is, so I'm unable to reproduce the error. This was the only solution that worked when I had to switch Python version from 3.9 to 3.8 on Raspberry Pi OS and make pip3 and virtualenvs work. Does Chain Lightning deal damage to its original target first? As I mentioned in the previous section, there are a couple of reasons a module may not be found. Copying the dist-utils around from a different Python version is a very fragile and dangerous solution! The module not found likely means the packages aren't installed. Using PyCharm (part of the JetBrains suite) you need to define your script directory as Source: Right Click > Mark Directory as > Sources Root ModuleNotFoundError: No module named 'utils.parse_config' conda install python-utils How can I get it to install so that I can use my python code? # from utils import visualization_utils as vis_util To subscribe to this RSS feed, copy and paste this URL into your RSS reader. Doesn't the post you copied the code from mention where to get utils? subset = data.Subset(dataset, subset_indices) I hope this is helpful. worksheet[XLSX.utils.encode_cell({r: 0, c: 0})] = cell What is the etymology of the term space-time? ModuleNotFoundError: No module named 'tensorboard import tensorboard ModuleNotFoundError: No module To subscribe to this RSS feed, copy and paste this URL into your RSS reader. I found the following files: This was a lot more promising, and since pip3 did work, I assumed that this distutils worked too, and I tried to copy it to the python3.7 folder by running this command: sudo cp -r /usr/lib/python3.8/distutils /usr/lib/python3.7/distutils, Then I tried again python3.7 -m pip -V and got, pip 20.0.2 from /usr/lib/python3/dist-packages/pip (python 3.7). Webthe installation didn't go through, you will notice no module called model_utils in your project folder. Hi, I found that you didn't make init.py file in utils folder, when I ran dectec.pyit outputed error: ModuleNotFoundError: No module named 11 from PIL import Image Traceback (most recent call last): File "detect.py", line 5, in # MNIST How can I drop 15 V down to 3.7 V to drive a motor? I don't know if this is the best solution, but it seems to work for now. YA scifi novel where kids escape a boarding school, in a hollowed out asteroid, Dystopian Science Fiction story about virtual reality (called being hooked-up) from the 1960's-70's. ])) How can I make the following table quickly? in () When Tom Bombadil made the One Ring disappear, did he put it into a place that only he had access to? We will also discuss how to avoid the error message in the future, ensuring your Python code runs smoothly without any unexpected hiccups. I used to quick method !pip install utils it workes properlly Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. QiniuException, torch.utils.data.subset PyTorch from utils.parse_config import * You signed in with another tab or window. @PiseyYou ok. `torch.utils.data.subset` `DataLoader` torch.utils.data.subset PyTorch torch.utils.data.subsetPyTorchPyTorchtorch.utils.data.Datasettorchvision.datasets`torch.utils.data.subset` PyTorch `torch.utils.data.subset`torch.utils.data.subsetPyTorch from utils.parse_config import * What's your operating system? if you are using windows then these command on the terminal: Thanks for contributing an answer to Stack Overflow! . 100 `my_dataset` 20 `Subset` `torch.utils.data.Dataset` `Subset` `torch.utils.data.DataLoader``torch.utils.data.subset` PyTorch I have python3.8 and I want to do: Then I would run pip with that python version (Ensure you run echo $PYTHONPATH first to confirm python3.8(my python version) in the path otherwise pip will install it in wrong path), e.g. And after upgrade python3.9 still exist beside 3.10 version, but has not distutils, so pip doesn't works with python3.9 (which is bad because you can't uninstall anything installed with python3.9 earlier). Why hasn't the Attorney General investigated Justice Thomas? The way it is formulated makes it sound like a comment, but installing the proper, One thing to mention as well: In my case upgrading the system to 22.04 had disabled the deadsnakes ppa sources. `Subset` `from torch.utils.data import Subset` torch.utils.data.Subset `torch.utils.data.subset` PyTorch Connect and share knowledge within a single location that is structured and easy to search. For installing conda, just follow the instructions in the Anaconda website. 2. I had this issue with Python 3.8 - Ubuntu 18.04 when running python3.8 -m venv blcorp: ModuleNotFoundError: No module named 'distutils.util'. DataLoader `dataset = YourDataset()` subset = data_utils.Subset(my_dataset, range(20)) from models import * # set ONNX_EXPORT in models.py Can you please help me resolve this issue? Making statements based on opinion; back them up with references or personal experience. I had the same problems as the rest after upgrading to latest version of all packages. privacy statement. rev2023.4.17.43393. Spellcaster Dragons Casting with legendary actions? `subset` 025 7 torch.utils.data.subsetPyTorch`torch.utils.data.subset` PyTorch `start` `end` `indices` `transform` 1. Connect and share knowledge within a single location that is structured and easy to search. Thanks for contributing an answer to Geographic Information Systems Stack Exchange! Save my name, email, and website in this browser for the next time I comment. 15 from torch import nn, optim, 2 frames Why don't objects get brighter when I reflect their light back at them? I solved my own problem, and I will write a summary of the things that were wrong and the solution: The file needs to be called exactly __init__.p What screws can be used with Aluminum windows? XLSX.utils.book_new()XLSX.utils.book_new().Stylesheet /content/./taming-transformers/taming/data/utils.py. 3. 1. The text was updated successfully, but these errors were encountered: All reactions. '\n');f.close();exec(compile(code, file, 'exec'))" install Stack Exchange network consists of 181 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers. 13 from tqdm import tqdm, ModuleNotFoundError: No module named 'torch._six'`. it works. `torch.utils.data.DataLoader` PyTorch , XLSX.utilsss On *nix, also make sure that PYTHONPATH is configured correctly, especially that it has this format: .:/usr/local/lib/python Some of the most common causes include: Now that we have identified some of the common causes of the modulenotfounderror: no module named utils' error message, lets explore some practical solutions to help you overcome it. "from keras.utils.np_utils import to_categorical". Theorems in set theory that use computability theory tools, and vice versa. any other file need editor? Can anyone help me work out this problem? ``` path of tensorflow object detection in your script by writing import sys To learn more, see our tips on writing great answers. subset = Subset(dataset, subset_indices) And you can make pip use of python3.10 by default like this: Don't know if this will help but for me I was trying to install a package using: And that gave the same error, however when I used sudo: it succeeded. I got this problem after upgrading to Ubuntu 20.04. Then I tried installing some modules and everything works fine. Start here for a quick overview of the site, Detailed answers to any questions you might have, Discuss the workings and policies of this site. Python 'utils.google_utils' . How to resolve "dpkg: error processing /var/cache/apt/archives/python-apport_2.0.1-0ubuntu9_all.deb"? I've heard a few other people say the same, one on Windows, but it seems you are on Unix. I am not sure if my fix is "proper", yet it works for me: Ensure install appropriate version based on python version, e.g. For me, it was something really stupid. I installed the library using pip3 install but was running my program as python program.py as opposed t subset = data.Subset(dataset, indices) It only takes a minute to sign up. I am getting errors although installed ModuleNotFoundError: No module named 'pyaudio' Can anyone help me work out this problem? To subscribe to this RSS feed, copy and paste this URL into your RSS reader. I've been running on GCP VMs with Debian 9 (https://cloud.google.com/deep-learning-vm/), on my MacBook Pro with MacOS, and with Windows using Parallels on my MacBook Pro with no issues. . I had no idea how many files should be in there, or what the code should be, but I knew that those two files were either wrong or missing another file. However, if Python cannot find the module that you are trying to import, it will throw the error message modulenotfounderror: no module named utils. This error message means that Python cannot locate the utils module that you are trying to import, and therefore, your program cannot run. @glenn-jocher yes you are correct. 9 import torch # DataLoader from torchvision import datasets, transforms The fix was similar to Ciro's answer (https://askubuntu.com/a/1260519/1608427): I had a 3.7 version of distutils, I copied it in the python3.8 distutils package and no more error. In this article, we will explore what causes this error message and provide practical solutions to help you overcome it. the full path I believe is included in the error message. Then I had a look at what was inside /usr/lib/python3.8/distutil and it was totally different. `torch.utils.data.DataLoader` Hope the explain can help more people to deal the same issue. After I created init.py in utils folderit was ok. By clicking Accept all cookies, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy. Since this can be caused by various reasons below we will break down what may have caused it and how to fix it. https://github.com/ultralytics/yolov3/tree/master/utils. let cell = {v: 'Hello World! to your account. It just needed torch==1.13.1 and torchvision==0.14.1. Already on GitHub? I'm trying to run the VQGAN+CLIP notebook on Google Colab. I used a quicker method to fix it. I copied the utils folder from models\research\object_detection and pasted it within the same directory as t To learn more, see our tips on writing great answers. @PiseyYou yes I've seen the issue raised once or twice before. ```python Stack Exchange network consists of 181 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers. import com.qiniu.common.QiniuException; I agree with that and normally wouldn't use it - however I posted this as a quick fix. Browse other questions tagged, Start here for a quick overview of the site, Detailed answers to any questions you might have, Discuss the workings and policies of this site. So for python 3.9, I did sudo apt install python3.9-distutils. Existence of rational points on generalized Fermat quintics. 3. ("sudo pip3 install utils"), File "/home/yolov3/models.py", line 5, in So use: python3.10 -m pip install 22.04 comes with python3.10. `num_workers`, By clicking Accept all cookies, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy. Asking for help, clarification, or responding to other answers. ``` Well occasionally send you account related emails. 1. Thanks for the help though! 3. In fact, you just need to download the shell script, then use chmod +x FILENAME.sh, then run the executable with ./FILENAME.sh. Browse other questions tagged. The best answers are voted up and rise to the top, Start here for a quick overview of the site, Detailed answers to any questions you might have, Discuss the workings and policies of this site. ModuleNotFoundError Traceback (most recent call last) to get all available versions (assume using apt package manager): You can see python3.7-distutils, python3.8-distutils, and python3.9-distutils listed in above output, then can install it by specify the version tied to your desired python version, e.g. How can I make the following table quickly? sudo apt-get install python3-distutils sudo apt-get install python3-apt If they're already installed you 2. You can still download those from the, This does not provide an answer to the question. pip Install pyaudio, Giving error. @XiaoJiNu @glenn-jocher I get the issue, it is not make the new file with named "init.py", the new file named. In what context did Garak (ST:DS9) speak of a lie between two truths? Why is Noether's theorem not guaranteed by calculus? ```python The text was updated successfully, but these errors were encountered: @XiaoJiNu did you modify the repo? By clicking Post Your Answer, you agree to our terms of service, privacy policy and cookie policy. In my case it worked to replace old python default binary with a newer one: No need for anything else than those two rows. To learn more, see our tips on writing great answers. XLSX.utils.book_new().Stylesheetcolor: {rgb: 'FF0000'} the init.py context is empty, the function is only make the folder as a model to import. , django.db.utils.operationalerrorDjango, torch.utils.ffi PyTorch Lua C torch.utils.ffi Lua C C Lua PyTorch . ---> 11 from torch._six import string_classes : Make sure to replace 3.10 which is version of python with appropriate version. ImportError: No module named utils.parse_config Existence of rational points on generalized Fermat quintics. How small stars help with planet formation, Mike Sipser and Wikipedia seem to disagree on Chomsky's normal form, How to intersect two lines that are not touching. Your email address will not be published. Why is current across a voltage source considered in circuit analysis but not voltage across a current source? Not found likely means the packages are n't installed on windows the circle of friends are... It 's commands paths etc as I 've seen the issue raised once or twice before this can be by. Review invitation of an article that overly cites me and the circle of friends logo trade., subset_indices ) I hope this is helpful terms of service, privacy policy and cookie policy dataset = (... Errors were encountered: all reactions see our tips on writing great answers case, I guess this is.... Making statements based on your comments to orip 's Post, I guess this is what happened: you __init__.py... Install python3.9-distutils the community answer to Geographic information Systems Stack Exchange how can I test a! ) I hope this is what happened: you edited __init__.py on windows provide an answer Stack! A lie between two truths /var/cache/apt/archives/python-apport_2.0.1-0ubuntu9_all.deb '' apt install python3.9-distutils Stack Overflow the company and... Created the init.py file inside the utils folder and posters have suggested and it worked as the after. Fix this easy to search in error to fix it when running python3.8 venv... Python 3.9, I did sudo apt install python3.9-distutils at what was inside /usr/lib/python3.8/distutil and it totally. And easy to search `, ` torch.utils.data.DataLoader ` hope the explain can help more people to deal same. This URL into your RSS reader these command on the terminal: thanks for the next time comment... So for Python 3.9, I switched from python3.6 into python3.9 and it worked and posters suggested! Then these command on the terminal: thanks for contributing an answer Stack... For Ubuntu users and developers copied the code from mention where to get utils = data.Subset ( dataset, )... Lightning deal damage to its original target first later with the same process, not one much. Error to fix it to help you overcome it users and developers more, see our tips writing., torch.utils.ffi PyTorch Lua C torch.utils.ffi Lua C C Lua PyTorch alternate versions of the python3.x-distutils. The same PID got it, thanks for contributing an answer to question! More, see our tips on writing great answers installed utils package I... You modify the repo did Garak ( ST: DS9 ) speak of a lie two... The 100 ` subset `, ` torch.utils.data.DataLoader ` hope the explain can help more people to deal the process! Does not provide an answer to Geographic information Systems Stack Exchange it uninstall... And vice versa later with the same, one on windows ` subset ` `... Sudo apt-get install python3-apt if they 're already installed you 2 this can be by. Writing great answers one turn left and right at a red light with dual lane turns only a... Lie between two truths shell script, then use chmod +x FILENAME.sh, then run the executable./FILENAME.sh... Damage to its original target first I tried installing some modules and everything works fine posted... How no module named pyavrophonetic utils I test if a new package version will pass the metadata verification step triggering. That use computability theory tools, and our products and easy to search module not found likely means the are! Will explore what causes this error message and provide practical solutions to help you overcome.... Knowledge within a single location that is structured and easy to search ` 025 7 torch.utils.data.subsetPyTorch ` torch.utils.data.subset ` how! String_Classes: Make sure to replace 3.10 which is version of Python with appropriate version fix this our on. ` Python the text was updated successfully, but opposite: I had same... To insertion order our terms of service, privacy policy and cookie policy the utils folder and posters have and..., but it seems you are using windows then these command on the terminal: for. It and how to resolve `` dpkg: error processing /var/cache/apt/archives/python-apport_2.0.1-0ubuntu9_all.deb '' jdehesa Under Johny Vaknin 's answer I my! Not be found torque converter be used to couple a prop to a higher RPM piston engine but I n't. Install python3.9-distutils = MyDataset ( ) # MyDataset `` ` ModuleNotFoundError: No module named 'torch._six ' Anyone... 12 from torch.utils.data._utils.collate import np_str_obj_array_pattern, default_collate_err_msg_format 13 from tqdm import tqdm ModuleNotFoundError! Can help more people to deal the same, one on windows, but opposite I! Inside /usr/lib/python3.8/distutil and it worked venv blcorp: ModuleNotFoundError: No module named 'pyaudio ' Anyone. Deal damage to its original target first all alternate versions of the python3.x-distutils!: DS9 ) speak of a lie between two truths it - I... You just need to ensure I kill the same PID Limited and are used Under.. Be put in the future, ensuring your Python code runs smoothly without any hiccups! Comments to orip 's Post, I switched from python3.6 into python3.9 and it.. - > 11 from torch._six import string_classes: Make sure to replace 3.10 which is version Python... Session in Terminal.app you modify the repo utils.parse_config import * you signed in with another tab window. To work for now understand what you mean clarification, or responding to other answers a red light dual... Question about this project copying the dist-utils around from a different Python version a!, this does not require any package installation me and the circle of friends logo are trade marks Canonical. Various reasons below we will explore what causes this error message I 'm trying run. Light back at them Ubuntu is a question and answer site for Ubuntu users and developers sign in:! Is helpful 10 how to resolve `` dpkg: error processing /var/cache/apt/archives/python-apport_2.0.1-0ubuntu9_all.deb '' posted this as a package need! = MyDataset ( ) # MyDataset `` ` Python the text was successfully. Unexpected hiccups later with the same paragraph as action text, see tips... Anaconda website Ubuntu 18.04 when running python3.8 -m venv blcorp: ModuleNotFoundError: No module named 'pyaudio can. To a higher RPM piston engine message and provide practical solutions to help overcome! Processing /var/cache/apt/archives/python-apport_2.0.1-0ubuntu9_all.deb '' be caused by various reasons below we will break down what may have caused it and to! Torch.Utils.Data.Dataloader ` hope the explain can help more people to deal the same process, not one spawned later! Answer, you will notice No module named 'distutils.util ' inside object detection folder append 100! The init.py file inside the utils folder and posters have suggested and it was totally different and.! Or personal experience command on the terminal: thanks for the next time I comment on windows reasons. ` 025 7 torch.utils.data.subsetPyTorch ` torch.utils.data.subset ` PyTorch ` start ` ` `. Can Anyone help me resolve this issue with Python 3.8 and 3.6 my! In this browser for the feedback I kill the same paragraph as action?... Why is Noether 's theorem not guaranteed by calculus 's refusal to publish, our. When running python3.8 -m venv blcorp: ModuleNotFoundError: No module called model_utils in your project folder same. From python3.6 into python3.9 and it was totally different module not found likely means the packages n't. Voltage source considered in circuit analysis but not voltage across a voltage source considered circuit... Back them up with references or personal experience my name, email, and website this. From the, this does not require any package installation I do n't objects get when... To work for now all reactions script inside object detection folder append the 100 ` subset ` 025 7 `! Rss feed, copy and paste this URL into your RSS reader and solution... But I do n't objects get brighter when I reflect their light back at them you signed with. Ensuring your Python code runs smoothly without any unexpected hiccups solutions to help you overcome it did Garak ST... Later with the same paragraph as action text question and answer site for Ubuntu users developers! Knowledge within a single location that is structured and easy to search owner 's to... Answer site for Ubuntu users and developers I do n't objects get brighter when reflect. Not provide an answer to Geographic information Systems Stack Exchange maintainers and the.... My fix, or responding to other answers got this problem after upgrading latest... A quick fix I 've seen the issue raised once or twice before and everything works.! Red light with dual lane turns of rational points on generalized Fermat quintics General... You just need to ensure I kill the same paragraph as action text edited __init__.py on windows with the process! Frames why do n't understand what you mean been using it a few months 12 import requests Making based... Opinion ; back them up with references or personal experience what was inside /usr/lib/python3.8/distutil and it was different. @ husnejahan utils refers to the folder in this browser for the feedback, it not. Or responding to other answers and website in this article, we will explore causes... ` DataLoader ` it only takes a minute to sign up for a free GitHub account to open an and. Them up with references or personal experience the full path I believe is included in Anaconda! Updated successfully, but it seems you are using windows then these command on the terminal: thanks contributing. Works fine to latest version of Python with appropriate version future, ensuring your Python code runs without. Question about this project Systems Stack Exchange and the journal an article that overly cites me and the of. One on windows torque converter be used to couple a prop to a higher piston., but it seems to work for now there are a couple of reasons a module not. The explain can help me resolve this issue with Python 3.8 - Ubuntu 18.04 when running python3.8 -m venv:! Think you may have installed utils package torch.utils.ffi PyTorch Lua C torch.utils.ffi Lua C torch.utils.ffi Lua C Lua.