Assuming a workspace named workspace_name has been previously created in the home directory, a package named package_name can be created by executing the following command lines.
workspace_name
package_name
$ cd ~/workspace_name/src/ $ catkin_create_pkg package_name rospy