A homepage subtitle here And an awesome description here!

25 January 2025

How to install python3 on Ubuntu | Setting Up Your Dev Environment

This post will show how to install python3 and pip in Ubuntu 24.04 OS. This post also shows how to overcome the externally managed environment error

$ sudo apt install python3-full python3 python3-pip

If you get this error, 
error: externally-managed-environment, then you need to create a virtual environment for Python and get things done...

Python3
Python3 error

So here is the step to do that
$ python3 -m venv ./pradeep
$ source ./pradeep/bin/activate

activate is common for Ubuntu/Fedora, activate.fish to be used in Arch Linux 

I tried to install a notebook

$ pip install notebook

so whenever you start running python3 and pip, use this command 

$ source ./pradeep/bin/activate

For complete details, watch the following video

Thats it. Subscribe to my channel for more such videos.

My Tech Blog - https://www.nsnam.com/
My Personal webiste - https://www.pradeepkumar.org ​


05 January 2025

ns3 installation on ubuntu | ns-3.43

Here are the requirements 1. Ubuntu 24.04 LTS 2. ns-allinone-3.43.tar.bz2

(Download the above software from https://www.nsnam.org/releases/ns-all... and store it in the home folder (In my case it is /home/pradeepkumar/ folder) This #installation will work for ns-3.38, ns-3.39, ns-3.40, ns-3.41 and ns-3.42 as well. Check the video for more instructions.

Open a New Terminal The first command to do is (You can just copy paste the following in your terminal window) $ sudo apt update $ sudo apt install g++ python3 cmake ninja-build git gir1.2-goocanvas-2.0 python3-gi python3-gi-cairo python3-pygraphviz gir1.2-gtk-3.0 ipython3 tcpdump wireshark sqlite3 libsqlite3-dev qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools openmpi-bin openmpi-common openmpi-doc libopenmpi-dev doxygen graphviz imagemagick python3-sphinx dia imagemagick texlive dvipng latexmk texlive-extra-utils texlive-latex-extra texlive-font-utils libeigen3-dev gsl-bin libgsl-dev libgslcblas0 libxml2 libxml2-dev libgtk-3-dev lxc-utils lxc-templates vtun uml-utilities ebtables bridge-utils libxml2 libxml2-dev libboost-all-dev ccache Now we have to go to the installation. Open a new Terminal and type the following commands. Copy the ns-allinone software to the home folder and just right-click and click "Extract here". Already the software is extracted or unzipped and it's in the home folder. open another terminal Now $ cd ns-allinone-3.43/ $ ./build.py --enable-examples --enable-tests (This above line will install all the packages for ns3 along with netanim, flow monitor, protocols applications, etc.) Source Codes: https://github.com/tspradeepkumar My other Channel -    / tspradeepkumar1​   My Tech Blog - https://www.nsnam.com/ ______________________________ Follow me on, Instagram -   / tspradeepkumar   Facebook -   / tspradeep​   Twitter -   / tspradeepkumar​   _______________________________



Powered by Blogger.

About Me

Featured Post

5G Network Simulation in NS3 using mmWave | NS3 Tutorial 2024

5G Network Simulation in NS3 Using mmWave This post shows the installation of ns3mmwave in Ubuntu 24.04 and simulates 5G networks in ns3. In...

Contact form

Name

Email *

Message *

Total Pageviews

Search This Blog

Pages

Pages

Pages - Menu

Most Popular

Popular Posts