# Lambda-Stack does not upgrade to PyTorch v 1.0

**URL:** <https://deeptalk.lambda.ai/t/lambda-stack-does-not-upgrade-to-pytorch-v-1-0/657>\
**Category:** Technical Help\
**Created:** [December 8, 2018, 12:36am UTC](https://deeptalk.lambda.ai/t/lambda-stack-does-not-upgrade-to-pytorch-v-1-0/657 "2018-12-08T00:36:52Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![sebastian](https://avatars.discourse-cdn.com/v4/letter/s/4da419/32.png) [@sebastian](https://deeptalk.lambda.ai/u/sebastian)\
**Post date:** [December 8, 2018, 12:36am UTC](https://deeptalk.lambda.ai/t/lambda-stack-does-not-upgrade-to-pytorch-v-1-0/657/1 "2018-12-08T00:36:52Z")

</div>

PyTorch v 1.0 just came out. Because it has some bugfixed that are relevant for my current research projects, I am wondering if it is save to update it via on the lambda stack. Or do you recommend waiting until the docker container is updated?

Thanks,  
Sebastian

---

<div class="post-metadata">

**Author:** ![sabalaba](https://sea1.discourse-cdn.com/flex019/user_avatar/deeptalk.lambda.ai/sabalaba/32/4_2.png) [@sabalaba](https://deeptalk.lambda.ai/u/sabalaba)\
**Post date:** [December 14, 2018, 6:16pm UTC](https://deeptalk.lambda.ai/t/lambda-stack-does-not-upgrade-to-pytorch-v-1-0/657/2 "2018-12-14T18:16:41Z")

</div>

Yes, we have 1.0 in the latest Lambda Stack update:

```auto
sudo apt-get update && sudo apt-get upgrade && sudo apt-get autoremove

```

---

<div class="post-metadata">

**Author:** ![sebastian](https://avatars.discourse-cdn.com/v4/letter/s/4da419/32.png) [@sebastian](https://deeptalk.lambda.ai/u/sebastian)\
**Post date:** [December 14, 2018, 7:12pm UTC](https://deeptalk.lambda.ai/t/lambda-stack-does-not-upgrade-to-pytorch-v-1-0/657/3 "2018-12-14T19:12:40Z")

</div>

Hm, just tried to run the upgrade command

```
sudo apt-get update && sudo apt-get upgrade && sudo apt-get autoremove

```

and after checking, it seems that PyTorch didn’t get updated.

```python
>>> import torch
>>> torch.cuda.is_available()
True
>>> torch. __version__'0.4.1'
>>> torch. __file__'/usr/lib/python3/dist-packages/torch/ __init__.py'
>>> 

```

That’s weird. When I previously updated via

```
sudo apt-get update && sudo apt-get upgrade

```

from PyTorch 0.4.1 to 0.4.1, I didn’t have this issue. Any tips for resolving this? Should I maybe try to manually uninstall/remove pytorch and then try the

```
sudo apt-get update && sudo apt-get upgrade && sudo apt-get autoremove

```

or could that break things?

---

<div class="post-metadata">

**Author:** ![sabalaba](https://sea1.discourse-cdn.com/flex019/user_avatar/deeptalk.lambda.ai/sabalaba/32/4_2.png) [@sabalaba](https://deeptalk.lambda.ai/u/sabalaba)\
**Post date:** [December 14, 2018, 9:26pm UTC](https://deeptalk.lambda.ai/t/lambda-stack-does-not-upgrade-to-pytorch-v-1-0/657/4 "2018-12-14T21:26:42Z")

</div>

Maybe you’ve installed pytorch via pip? Run:

```auto
sudo pip uninstall pytorch torchvision

```

---

<div class="post-metadata">

**Author:** ![sebastian](https://avatars.discourse-cdn.com/v4/letter/s/4da419/32.png) [@sebastian](https://deeptalk.lambda.ai/u/sebastian)\
**Post date:** [December 14, 2018, 10:25pm UTC](https://deeptalk.lambda.ai/t/lambda-stack-does-not-upgrade-to-pytorch-v-1-0/657/5 "2018-12-14T22:25:22Z")

</div>

> Maybe you’ve installed pytorch via pip?

As far as I remember, I haven’t on the machine where I run the lambda-stack (I was very careful not making any changes on that machine after I got it :P)

I tried both

```
sudo pip3 uninstall pytorch torchvision

```

and

```
sudo pip3 uninstall pytorch torchvision

```

and in both cases I get a

```
Cannot uninstall requirement pytorch, not installed

```

---

<div class="post-metadata">

**Author:** ![sebastian](https://avatars.discourse-cdn.com/v4/letter/s/4da419/32.png) [@sebastian](https://deeptalk.lambda.ai/u/sebastian)\
**Post date:** [December 25, 2018, 4:28pm UTC](https://deeptalk.lambda.ai/t/lambda-stack-does-not-upgrade-to-pytorch-v-1-0/657/6 "2018-12-25T16:28:21Z")

</div>

I have now tried the command

```
sudo apt-get update && sudo apt-get upgrade && sudo apt-get autoremove

```

multiple times and before and after rebooting the machine, but unfortunately, it still looks like PyTorch is not being updated to 1.0 (it’s still 0.4.1). And again, I don’t have installed PyTorch manually and are using it via the Lambda Stack that came with the Lambda Quad machine.

```python
user@lambda-quad:~$ pip3 uninstall pytorch
Cannot uninstall requirement pytorch, not installed
user@lambda-quad:~$ python3
Python 3.6.7 (default, Oct 22 2018, 11:32:17) 
[GCC 8.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
>>> torch. __file__'/usr/lib/python3/dist-packages/torch/ __init__.py'
>>> torch. __version__'0.4.1'

```

I would appreciate any pointers from here.

Thanks!

---

<div class="post-metadata">

**Author:** ![sabalaba](https://sea1.discourse-cdn.com/flex019/user_avatar/deeptalk.lambda.ai/sabalaba/32/4_2.png) [@sabalaba](https://deeptalk.lambda.ai/u/sabalaba)\
**Post date:** [January 9, 2019, 8:47pm UTC](https://deeptalk.lambda.ai/t/lambda-stack-does-not-upgrade-to-pytorch-v-1-0/657/7 "2019-01-09T20:47:26Z")

</div>

I think v1.0 PyTorch is coming soon to Lambda Stack. It’s not currently in the Lambda Stack but it will be soon!

---

<div class="post-metadata">

**Author:** ![sebastian](https://avatars.discourse-cdn.com/v4/letter/s/4da419/32.png) [@sebastian](https://deeptalk.lambda.ai/u/sebastian)\
**Post date:** [January 10, 2019, 1:10am UTC](https://deeptalk.lambda.ai/t/lambda-stack-does-not-upgrade-to-pytorch-v-1-0/657/8 "2019-01-10T01:10:16Z")

</div>

Thanks for the update. It would be nice to leave a brief note once it’s in the stack so I don’t have to check manually every day :). Maybe, it would also be nice to list the available software library version of the main DL packages on the Lambda-Stack page so that there’s no confusion among users in cases like this.

---

<div class="post-metadata">

**Author:** ![SAICsergio](https://avatars.discourse-cdn.com/v4/letter/s/43a26b/32.png) [@SAICsergio](https://deeptalk.lambda.ai/u/SAICsergio)\
**Post date:** [February 24, 2020, 10:13pm UTC](https://deeptalk.lambda.ai/t/lambda-stack-does-not-upgrade-to-pytorch-v-1-0/657/9 "2020-02-24T22:13:10Z")

</div>

Hey. I just ran `sudo apt-get update && sudo apt-get upgrade && sudo apt-get autoremove`, but my torch version is still 0.4.1, and not 1.0. The model I want to run requires version 1.0. Please advise. Thanks.

---

<div class="post-metadata">

**Author:** ![sebastian](https://avatars.discourse-cdn.com/v4/letter/s/4da419/32.png) [@sebastian](https://deeptalk.lambda.ai/u/sebastian)\
**Post date:** [February 24, 2020, 11:10pm UTC](https://deeptalk.lambda.ai/t/lambda-stack-does-not-upgrade-to-pytorch-v-1-0/657/10 "2020-02-24T23:10:04Z")

</div>

I kind of gave up on using the lambda-stack. It’s really out of date right now. Not sure if it is really maintained anymore. I just installed Conda now and then installed the latest version via

```
conda install pytorch torchvision -c pytorch

```
