Skip to content

Commit fa900ee

Browse files
authored
Merge pull request #6 from masschallenge/AC-9988
[AC-9988] Opsworks web python ERROR: bash[installing python3.6]
2 parents 1c500eb + f26fe8c commit fa900ee

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

recipes/python.rb

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,14 @@
1919
#note that this is using the fkrull/deadsnakes repository listed above
2020
bash 'install python3.6' do
2121
code <<-EOH
22-
sudo apt install python3.6 python3.6-dev -y;
22+
sudo apt-get purge python3.6;
23+
sudo apt-get autoremove && sudo apt-get autoclean;
24+
sudo apt install python3.6 -y --force-yes;
25+
sudo apt install python3.6-dev -y --force-yes;
26+
sudo apt install python3.6-venv -y --force-yes;
27+
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.6 1
28+
29+
sudo cp /usr/lib/python3/dist-packages/apt_pkg.cpython* /usr/lib/python3/dist-packages/apt_pkg.so;
2330
EOH
2431
flags "-x"
25-
end
32+
end

0 commit comments

Comments
 (0)